Skip to content

Commit

Permalink
Merge pull request dthree#297 from ORESoftware/master
Browse files Browse the repository at this point in the history
Allow user to access the raw command string
  • Loading branch information
milesj authored Aug 15, 2018
2 parents f0eb1e0 + ec2b910 commit 51f5e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ session.execCommandSet = function (wrapper, callback) {
onCompletion(wrapper, valid || null);
return this;
}

if(wrapper.args && typeof wrapper.args === 'object'){
wrapper.args.rawCommand = wrapper.command;
}

// Call the root command.
res = wrapper.fn.call(commandInstance, wrapper.args, function () {
Expand Down

0 comments on commit 51f5e2b

Please sign in to comment.