Skip to content

Commit

Permalink
Merge pull request tj#298 from tj/revert-293-custom-name
Browse files Browse the repository at this point in the history
Revert "Make app name settable tj#292"
  • Loading branch information
zhiyelee committed Dec 7, 2014
2 parents fc543c8 + 87c6acb commit 5f6f432
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,17 +793,15 @@ Command.prototype.usage = function(str) {
};

/**
* Get/set the name of the command
* Get the name of the command
*
* @param {String} name
* @return {String|Command}
* @api public
*/

Command.prototype.name = function(name) {
if (0 == arguments.length) return this._name;
this._name = name;
return this;
return this._name;
};

/**
Expand Down

0 comments on commit 5f6f432

Please sign in to comment.