Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump for default false fix in option()

  • Loading branch information...
commit 49f9047d762402e28ffd3bdb99bf48120b406a65 1 parent d09b719
James Halliday authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 index.js
  2. +1 −1  package.json
4 index.js
View
@@ -168,7 +168,9 @@ function Argv (args, cwd) {
else {
if (opt.alias) self.alias(key, opt.alias);
if (opt.demand) self.demand(key);
- if (typeof opt.default!='undefined') self.default(key, opt.default);
+ if (typeof opt.default !== 'undefined') {
+ self.default(key, opt.default);
+ }
if (opt.boolean || opt.type === 'boolean') {
self.boolean(key);
2  package.json
View
@@ -1,6 +1,6 @@
{
"name" : "optimist",
- "version" : "0.3.0",
+ "version" : "0.3.1",
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.",
"main" : "./index.js",
"directories" : {
Please sign in to comment.
Something went wrong with that request. Please try again.