Skip to content
Myr

docs

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 569b137 · Browse files · 1 file+15 added−1 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+15 added−1 removed

  • other:+15 added−1 removed

1 file+15 added−1 removed

modified:lib/commander.js+15 added-1 removed
48 unmodified lines
49 this.large = flags.shift();50 this.description = description;51}5253/**54 * Return option name.55 *56 * @return {String}57 * @api private58 */5960Option.prototype.name = function(){61 return this.large62 .replace('--', '')63 .replace('no-', '');64};6566/**67 * Check if `arg` matches the small or large flag.68 *69 * @param {String} arg70 * @return {Boolean}71 * @api private72 */7374Option.prototype.is = function(arg){75 return arg == this.small76 || arg == this.large;77};786479/**80 * Initialize a new `Command`.81 *82 * @param {String} name
355 unmodified lines