-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
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
Dot-notation boolean flags aren't parsed correctly #617
Labels
Comments
It would appear that my original assessment was incorrect. This is still a bug in 6.0.0. var parse = require('yargs-parser');
console.log(parse(
['--nested.value'].join(' '),
{
boolean : ['nested.value'],
default : {
'nested.value' : false
}
}
));
Not specifying that it is a boolean works as a workaround, but this is still a bug. |
I would like to work on this. Can anyone help me out a bit? |
bcoe
pushed a commit
that referenced
this issue
Nov 7, 2016
bcoe
added a commit
that referenced
this issue
Nov 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following example:
testScript.js
./bin/testScript
./bin/testScript.js --nested.value
The value is placed into an array instead of changing the boolean value.
The text was updated successfully, but these errors were encountered: