Comparing version 1.0.3 to 1.0.4
@@ -20,3 +20,5 @@ #!/usr/bin/env node | ||
, "p" : ["--pick"] | ||
, "f" : ["--flag"] | ||
, "f" : ["--flag", "true"] | ||
, "g" : ["--flag"] | ||
, "s" : "--flag" | ||
} | ||
@@ -23,0 +25,0 @@ // everything is optional. |
@@ -229,3 +229,3 @@ // info about each config option. | ||
arg = arg.replace(/^-+/, '') | ||
if (abbrevs[arg]) { | ||
if (abbrevs[arg] && !shorthands[arg]) { | ||
return null | ||
@@ -232,0 +232,0 @@ } |
{ "name" : "nopt" | ||
, "version" : "1.0.3" | ||
, "version" : "1.0.4" | ||
, "description" : "Option parsing for Node, supporting types, shorthands, etc. Used by npm." | ||
@@ -4,0 +4,0 @@ , "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)" |
19354
392