Merge pull request #183 from ChristianMurphy/filter-undefined
filter out undefined values
This commit is contained in:
commit
8332f5a343
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ Argv.prototype.loadArgv = function () {
|
||||||
|
|
||||||
this.readOnly = false;
|
this.readOnly = false;
|
||||||
Object.keys(argv).forEach(function (key) {
|
Object.keys(argv).forEach(function (key) {
|
||||||
|
if (typeof argv[key] !== 'undefined') {
|
||||||
self.set(key, argv[key]);
|
self.set(key, argv[key]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.showHelp = yargs.showHelp
|
this.showHelp = yargs.showHelp
|
||||||
|
|
Loading…
Reference in a new issue