Skip to content

Commit

Permalink
Merge pull request #293 from LawrenceJones/custom-name
Browse files Browse the repository at this point in the history
Make app name settable #292
  • Loading branch information
SomeKittens committed Dec 5, 2014
2 parents 875e498 + f686474 commit 1a065da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,15 +787,17 @@ Command.prototype.usage = function(str) {
};

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

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

/**
Expand Down

0 comments on commit 1a065da

Please sign in to comment.