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
@nexdrew pointed out this edge-case:
when you enable both flatten-duplicate-arrays and duplicate-arguments-array are enabled
{ "yargs": { "flatten-duplicate-arrays": false, "duplicate-arguments-array": false } }
Running:
node test.js -x 1 2 3 -x 2 3 4
results in:
{ _: [], x: [ [ '1', '2', '3' ], [ '2', '3', '4' ] ], '$0': 'test.js' }
It seems like it would be more consistent with this new API for the result to be x: ['2', '3', '4']
x: ['2', '3', '4']
CC: @laggingreflex if you're looking for your next contribution to yargs, would love help adding a test and fix for this.
The text was updated successfully, but these errors were encountered:
[WIP] fix for flatten/duplicate regression
6b6cc20
work in progress for yargs#74
d66c5fc
Successfully merging a pull request may close this issue.
@nexdrew pointed out this edge-case:
when you enable both flatten-duplicate-arrays and duplicate-arguments-array are enabled
Running:
results in:
It seems like it would be more consistent with this new API for the result to be
x: ['2', '3', '4']
CC: @laggingreflex if you're looking for your next contribution to yargs, would love help adding a test and fix for this.
The text was updated successfully, but these errors were encountered: