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
Non-number alias
var argv = require("yargs-parser")(process.argv.slice(2), { alias: { z: "zero" }, default: { zero: false } }); console.log(argv);
$ node example.js --zero { _: [], zero: true, z: true }
$ node example.js -z { _: [], z: true, zero: true }
Number alias
var argv = require("yargs-parser")(process.argv.slice(2), { alias: { 0: "zero" }, default: { zero: false } }); console.log(argv);
$ node example.js --zero { '0': true, _: [], zero: true }
$ node example.js -0 { '0': false, _: [ -0 ], zero: false }
For more context check sindresorhus/meow#89
The text was updated successfully, but these errors were encountered:
I tried to create a PR and end up finding:
} else if (arg.match(/^-[^-]+/) && !arg.match(negative)) {
#44
Sorry, something went wrong.
@torifat just catching up on old issues, I'm guessing this is because we allow -1, -2, -3, etc, as positional arguments, so it's ambiguous?
No branches or pull requests
Non-number alias
Number alias
For more context check sindresorhus/meow#89
The text was updated successfully, but these errors were encountered: