supports keys marked as false
This commit is contained in:
@@ -51,7 +51,7 @@ if (program.args.length > 0 ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
options = Object.keys(definitions).reduce(function (options, key) {
|
options = Object.keys(definitions).reduce(function (options, key) {
|
||||||
if (program[key]) {
|
if (typeof program[key] !== 'undefined') {
|
||||||
options[key] = program[key];
|
options[key] = program[key];
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
|
|||||||
Reference in New Issue
Block a user