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
Since all options/arguments can be typed, automatically coerce into the proper type and throw if it can't be done.
e.g.
command.option("count", { type: "number", })
called with node app.js --count x returns NaN for args.count while we should throw here (invalid arg).
node app.js --count x
NaN
args.count
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since all options/arguments can be typed, automatically coerce into the proper type and throw if it can't be done.
e.g.
called with
node app.js --count x
returnsNaN
forargs.count
while we should throw here (invalid arg).The text was updated successfully, but these errors were encountered: