commander
Advanced tools
Comparing version 0.6.1 to 1.0.0
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 @@ ================== |
@@ -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"] |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32099
903
0
1