Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
0
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

5

History.md
0.4.1 / 2011-11-18
==================
* Removed listening for "close" on --help
0.4.0 / 2011-11-15

@@ -3,0 +8,0 @@ ==================

7

lib/commander.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc