supports keys marked as false

This commit is contained in:
Florent Vilmart
2016-03-15 20:22:32 -04:00
parent 6e4357c6df
commit 86f93e39a7

View File

@@ -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;