Print actual command on bad command
When a bad command is given, print the actual command.
This commit is contained in:
@ -104,7 +104,7 @@ program
|
||||
.demandCommand(1, 'At least one command is required')
|
||||
.command('*', 'the default command', {}, function(argv) {
|
||||
maxctrl(argv, function() {
|
||||
return error('Unknown command. See output of `help` for a list of commands.')
|
||||
return error('Unknown command ' + JSON.stringify(argv._) + '. See output of `help` for a list of commands.')
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user