Skip to content

Commit

Permalink
If "default" is set to false it was not passed on, fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfram Kriesing committed Dec 30, 2011
1 parent 6e74aa7 commit d09b719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function Argv (args, cwd) {
else {
if (opt.alias) self.alias(key, opt.alias);
if (opt.demand) self.demand(key);
if (opt.default) self.default(key, opt.default);
if (typeof opt.default!='undefined') self.default(key, opt.default);

if (opt.boolean || opt.type === 'boolean') {
self.boolean(key);
Expand Down

0 comments on commit d09b719

Please sign in to comment.