commander
Advanced tools
Comparing version 0.4.1 to 0.4.2
0.4.2 / 2011-11-24 | ||
================== | ||
* Added travis support | ||
* Fixed: line-buffered input automatically trimmed. Closes #31 | ||
0.4.1 / 2011-11-18 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -673,5 +673,6 @@ | ||
Command.prototype.promptForDate = function(str, fn){ | ||
var self = this; | ||
this.promptSingleLine(str, function(val){ | ||
val = new Date(val); | ||
if (isNaN(val.getTime())) return program.promptForDate(str + '(must be a date) ', fn); | ||
if (isNaN(val.getTime())) return self.promptForDate(str + '(must be a date) ', fn); | ||
fn(val); | ||
@@ -697,3 +698,3 @@ }); | ||
process.stdin.once('data', function(val){ | ||
fn(val); | ||
fn(val.trim()); | ||
}).resume(); | ||
@@ -700,0 +701,0 @@ }; |
{ | ||
"name": "commander" | ||
, "version": "0.4.1" | ||
, "version": "0.4.2" | ||
, "description": "the complete solution for node.js command-line programs" | ||
@@ -10,4 +10,5 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"] | ||
, "devDependencies": { "should": ">= 0.0.1" } | ||
, "scripts": { "test": "make test" } | ||
, "main": "index" | ||
, "engines": { "node": ">= 0.4.x < 0.7.0" } | ||
} |
@@ -6,2 +6,4 @@ | ||
[![Build Status](https://secure.travis-ci.org/visionmedia/commander.js.png)](http://travis-ci.org/visionmedia/commander.js) | ||
## Installation | ||
@@ -8,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
40224
33
995
263