Skip to content

Commit

Permalink
filter out undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Aug 19, 2015
1 parent c2b8b97 commit 5d95f13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nconf/stores/argv.js
Expand Up @@ -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
Expand Down

0 comments on commit 5d95f13

Please sign in to comment.