filter out undefined values

This commit is contained in:
Christian Murphy 2015-08-19 09:16:16 -07:00
parent c2b8b97778
commit 5d95f13eb0

View file

@ -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) {
self.set(key, argv[key]); if (typeof argv[key] !== 'undefined') {
self.set(key, argv[key]);
}
}); });
this.showHelp = yargs.showHelp this.showHelp = yargs.showHelp