commander
Advanced tools
Comparing version 2.7.0 to 2.7.1
2.7.0 / 2015-03-07 | ||
2.7.1 / 2015-03-11 | ||
================== | ||
* Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367. | ||
2.7.0 / 2015-03-09 | ||
================== | ||
* Fix git-style bug when installed globally. Close #335 #349 @zhiyelee | ||
@@ -6,0 +11,0 @@ * Fix collisions when option and first arg have same name. Close #346 #347 @tonylukasavage |
@@ -291,4 +291,4 @@ | ||
}; | ||
this.parent.on('action_' + this._name, listener); | ||
if (this._alias) this.parent.on('action_' + this._alias, listener); | ||
this.parent.on(this._name, listener); | ||
if (this._alias) this.parent.on(this._alias, listener); | ||
return this; | ||
@@ -572,4 +572,4 @@ }; | ||
name = args[0]; | ||
if (this.listeners('action_' + name).length) { | ||
this.emit('action_' + args.shift(), args, unknown); | ||
if (this.listeners(name).length) { | ||
this.emit(args.shift(), args, unknown); | ||
} else { | ||
@@ -576,0 +576,0 @@ this.emit('*', args); |
{ | ||
"name": "commander", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "the complete solution for node.js command-line programs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
39122