Closed
Description
Given the following example:
testScript.js
var argv = require('yargs')
.options({
'nested.value': {
type: 'boolean'
}
}).argv;
console.log(argv);
./bin/testScript
{ _: [],
nested: { value: false },
'$0': 'bin\testScript.js' }
./bin/testScript.js --nested.value
{ _: [],
nested: { value: [ false, true ] },
'$0': 'bin\testScript.js' }
The value is placed into an array instead of changing the boolean value.