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
--help
when i set requiredOption on program, the --help will noneffective:
const program = new commander.Command() program.version('0.0.1') program .requiredOption('-d, --dir <path>', 'dir path') .option('-t, --timeout <number>', 'timeout')
when use -h, will get a error, but not the help info:
$ ./app.js -h error: required option '-d, --dir <path>' not specified
The text was updated successfully, but these errors were encountered:
Try updating to Commander v4.0.1, which fixes that issue (#1089 #1091).
https://github.com/tj/commander.js/releases/tag/4.0.1
Sorry, something went wrong.
@shadowspawn thank you !
No branches or pull requests
when i set requiredOption on program, the
--help
will noneffective:when use -h, will get a error, but not the help info:
$ ./app.js -h error: required option '-d, --dir <path>' not specified
The text was updated successfully, but these errors were encountered: