We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
What would be the best way of printing help output when the command is unknown? E.g. program unknownCommand
program unknownCommand
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Answered
@goldcaddy77 The issue with this is that the * still show in the help output
*
No branches or pull requests
Hello,
What would be the best way of printing help output when the command is unknown? E.g.
program unknownCommand
The text was updated successfully, but these errors were encountered: