commander
Advanced tools
Comparing version 1.0.0 to 1.0.1
1.0.1 / 2012-08-03 | ||
================== | ||
* fix issue #56 | ||
* fix tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode()) | ||
1.0.0 / 2012-07-05 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -216,2 +216,5 @@ /*! | ||
// Leftover arguments need to be pushed back. Fixes issue #56 | ||
if (parsed.args.length) args = parsed.args.concat(args); | ||
self.args.forEach(function(arg, i){ | ||
@@ -872,3 +875,3 @@ if (arg.required && null == args[i]) { | ||
process.stdin.resume(); | ||
tty.setRawMode(true); | ||
process.stdin.setRawMode(true); | ||
process.stdout.write(str); | ||
@@ -881,3 +884,3 @@ | ||
process.stdin.removeAllListeners('keypress'); | ||
tty.setRawMode(false); | ||
process.stdin.setRawMode(false); | ||
if (!buf.trim().length) return self.password(str, mask, fn); | ||
@@ -884,0 +887,0 @@ fn(buf); |
{ | ||
"name": "commander" | ||
, "version": "1.0.0" | ||
, "version": "1.0.1" | ||
, "description": "the complete solution for node.js command-line programs" | ||
@@ -5,0 +5,0 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"] |
32414
905