Skip to content
Myr

Merge branch 'mojavelinux-issue-739-command-prefix' into release/3.0.0

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

authored by John Gee · committed by John Gee · parents ff156f0, b937dd4 · Browse files · 2 files+12 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

2 files+12 added−1 removed

  • tests:+8 added−0 removed
  • other:+4 added−1 removed

2 files+12 added−1 removed

added:test/test.command.usage.js+8 added
modified:index.js+4 added-1 removed
1114 unmodified lines
1115 var cmdName = this._name;1116 if (this._alias) {1117 cmdName = cmdName + '|' + this._alias;1118 }1119 var ancestor = this;1120 var prefix = [];1121 while ((ancestor = ancestor.parent)) prefix.push(ancestor.name() + ' ');1122 var usage = [1120 'Usage: ' + cmdName + ' ' + this.usage(),1123 'Usage: ' + prefix.join('') + cmdName + ' ' + this.usage(),1124 ''1125 ];11261127 var cmds = [];
119 unmodified lines