Skip to content
Myr

add "[command]" to the usage when commands are defined

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 236ef92 · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:lib/commander.js+4 added-1 removed
528 unmodified lines
529 * @api public530 */531532Command.prototype.usage = function(str){533 var usage = '[options'534 + (this.commands.length ? '] [command' : '')535 + ']';533 if (0 == arguments.length) return this._usage || '[options]';536 if (0 == arguments.length) return this._usage || usage;537 this._usage = str;538 return this;539};540
265 unmodified lines