commander
Advanced tools
Comparing version 0.3.3 to 0.4.0
0.4.0 / 2011-11-15 | ||
================== | ||
* Added support for `--`. Closes #24 | ||
0.3.3 / 2011-11-14 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -412,2 +412,3 @@ | ||
, len = argv.length | ||
, literal | ||
, option | ||
@@ -419,2 +420,15 @@ , arg; | ||
arg = argv[i]; | ||
// literal args after -- | ||
if ('--' == arg) { | ||
literal = true; | ||
continue; | ||
} | ||
if (literal) { | ||
args.push(arg); | ||
continue; | ||
} | ||
// find matching Option | ||
option = this.optionFor(arg); | ||
@@ -421,0 +435,0 @@ |
{ | ||
"name": "commander" | ||
, "version": "0.3.3" | ||
, "version": "0.4.0" | ||
, "description": "the complete solution for node.js command-line programs" | ||
@@ -5,0 +5,0 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"] |
39764
32
996