filter out undefined values

master
Christian Murphy 2015-08-19 09:16:16 -07:00
parent c2b8b97778
commit 5d95f13eb0
1 changed files with 3 additions and 1 deletions

View File

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