Print actual command on bad command
When a bad command is given, print the actual command.
This commit is contained in:
parent
73de112ae4
commit
b8df0dfc02
@ -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.')
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user