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.6.1 to 1.0.0

6

History.md
1.0.0 / 2012-07-05
==================
* add support for optional option descriptions
* add defaulting of `.version()` to package.json's version
0.6.1 / 2012-06-01

@@ -3,0 +9,0 @@ ==================

11

lib/commander.js

@@ -1,2 +0,1 @@

/*!

@@ -51,3 +50,3 @@ * commander

this.long = flags.shift();
this.description = description;
this.description = description || '';
}

@@ -346,3 +345,8 @@

if (!this.name) this.name = basename(argv[1]);
// guess version
if (!this._version) {
try {
this.version(require('../package.json').version);
} catch(e) {}
}
// process argv

@@ -561,2 +565,3 @@ var parsed = this.parseOptions(this.normalize(argv.slice(2)));

/**

@@ -563,0 +568,0 @@ * Set the program version to `str`.

{
"name": "commander"
, "version": "0.6.1"
, "version": "1.0.0"
, "description": "the complete solution for node.js command-line programs"

@@ -5,0 +5,0 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"]

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