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
// test.js console.log( require('yargs-parser')(process.argv.slice(2), { 'alias': { 'f': 'files' }, 'array': ['files'] }) );
node test.js -f // -> output: { _: [], f: [ true ], files: [ true ] } (this is broken!) node test.js --files // -> output: { _: [], files: [], f: [] } node test.js -f -y // -> output: { _: [], f: [], files: [], y: true } node test.js --files -y // -> output: { _: [], f: [], files: [], y: true }
I think it should be a bug...
The text was updated successfully, but these errors were encountered:
forget the runtime env:
node@4.4.6 yargs-parser@2.4.1
Sorry, something went wrong.
fix: check aliases when guessing defaults for arguments fixes #41
b2632cb
fix: check aliases when guessing defaults for arguments fixes #41 (#43)
f3e4616
Successfully merging a pull request may close this issue.
I think it should be a bug...
The text was updated successfully, but these errors were encountered: