-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Say we have this:
{
names: ['json'],
type: 'bool',
env: 'nlu_setting_json'
},it's clear that if we use:
export nlu_setting_json=1but what if we have an array of string or something:
{
names: ['search-root', 'search'],
type: 'arrayOfString',
help: 'Path to use to begin searching for relevant NPM packages; overrides config. ' +
'To add multiple search-root\'s, use "--search-root x --search-root y".'
},it's unclear to me how to use an env variable for that.
On another note, I don't see why
export nlu_setting_json=falseand this
export nlu_setting_json=0are not equivalent, when it comes to dashdash converting them to booleans. 0 and false are both strings, so why does dashdash not interpret "false" as false, but it does interpret "0" as false?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels