Skip to content
Myr

implement Command.prototype.name()

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

authored by Tony Lukasavage · committed by Tony Lukasavage · parent 6089ed4 · Browse files · 2 files+28 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

2 files+28 added−0 removed

  • tests:+14 added−0 removed
  • other:+14 added−0 removed

2 files+28 added−0 removed

added:test/test.command.name.js+14 added
modified:index.js+14 added
742 unmodified lines
743 return this;744};745746/**747 * Set / get the name for the command748 *749 * @param {String} name750 * @return {String|Command}751 * @api public752 */753754Command.prototype.name = function(name){755 if (0 == arguments.length) return this._name;756 this._name = name;757 return this;758};759760/**761 * Return the largest option length.762 *763 * @return {Number}764 * @api private
162 unmodified lines