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) {
|
||||
if (program[key]) {
|
||||
if (typeof program[key] !== 'undefined') {
|
||||
options[key] = program[key];
|
||||
}
|
||||
return options;
|
||||
|
||||
Reference in New Issue
Block a user