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