Skip to content
Myr

Added `Commander#command()` back

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent c34851d · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • other:+14 added−0 removed

1 file+14 added−0 removed

modified:lib/commander.js+14 added
506 unmodified lines
507 return this;508};509510/**511 * Set the description `str`.512 *513 * @param {String} str514 * @return {String|Command}515 * @api public516 */517518Command.prototype.description = function(str){519 if (0 == arguments.length) return this._description;520 this._description = str;521 return this;522};523524/**525 * Set / get the command usage `str`.526 *527 * @param {String} str528 * @return {String|Command}
271 unmodified lines