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
Key names of an object setting are parsed as dot-notation #716
Comments
@strugee thanks for reporting this bug, I will work on putting some tests around this behavior. |
@strugee does this fix seem reasonable? yargs/yargs-parser#72 |
@bcoe I'm not familiar with yargs-parser so I'm not quite in a position to judge, but it seems pretty good! Thanks! |
@strugee this should now be fixed in |
I put
|
@geekdada @maxrimue I believe this issue is that you haven't turned off yargs config in package.json: "yargs": {
"dot-notation": false
} config.json: {
"expect.js": "3.2.9",
"promise.prototype.finally": "3.3.3"
} yargs output: { _: [],
foo: 'b.json',
'expect.js': '3.2.9',
'promise.prototype.finally': '3.3.3',
'$0': 'index.js',
x: undefined } |
Given the following (abbreviated) yargs config:
And the following
/etc/gh-pages-server.json
:yargs produces an argv object that contains:
whereas the intended result was something like:
I tried setting
dot-notation
tofalse
in mypackage.json
, but that generated a config key that looked like:which obviously also isn't what was intended.
The text was updated successfully, but these errors were encountered: