Hello,
What would be the best way of printing help output when the command is unknown? E.g. program unknownCommand
This should work:
program.on('*', function () {
console.log('Unknown Command: ' + program.args.join(' '))
program.help()
})
It would be good to get this documented in the readme.
Answered
@goldcaddy77 The issue with this is that the * still show in the help output
Most helpful comment
@goldcaddy77 The issue with this is that the
*still show in the help output