commander
Advanced tools
Comparing version 0.4.0 to 0.4.1
0.4.1 / 2011-11-18 | ||
================== | ||
* Removed listening for "close" on --help | ||
0.4.0 / 2011-11-15 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -920,8 +920,5 @@ | ||
exports.on('help', function(){ | ||
exports.emit('--help'); | ||
process.stdout.write(this.helpInformation()); | ||
exports.emit('--help'); | ||
process.stdout.destroySoon(); | ||
process.stdout.on('close', function(){ | ||
process.exit(0); | ||
}); | ||
process.exit(0); | ||
}); |
{ | ||
"name": "commander" | ||
, "version": "0.4.0" | ||
, "version": "0.4.1" | ||
, "description": "the complete solution for node.js command-line programs" | ||
@@ -5,0 +5,0 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"] |
@@ -73,2 +73,3 @@ | ||
.version('0.0.1') | ||
.usage('[options] <file ...>') | ||
.option('-i, --integer <n>', 'An integer argument', parseInt) | ||
@@ -75,0 +76,0 @@ .option('-f, --float <n>', 'A float argument', parseFloat) |
@@ -15,2 +15,3 @@ /** | ||
program.foo.should.be.true; | ||
should.equal(undefined, program.bar); | ||
program.args.should.eql(['--bar', 'baz']); |
Sorry, the diff of this file is not supported yet
39856
261
994