Merge pull request #183 from ChristianMurphy/filter-undefined

filter out undefined values
This commit is contained in:
Jarrett Cruger 2015-08-19 12:30:27 -04:00
commit 8332f5a343

View file

@ -58,7 +58,9 @@ Argv.prototype.loadArgv = function () {
this.readOnly = false;
Object.keys(argv).forEach(function (key) {
if (typeof argv[key] !== 'undefined') {
self.set(key, argv[key]);
}
});
this.showHelp = yargs.showHelp