Skip to content
Myr

clean up usage argument summary

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

instead of using implicit array string conversion which includes confusing commas, use an explicit .join(' ')

authored by David Bushong · committed by David Bushong · parent 963458a · Browse files · 1 file+3 added−4 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+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:index.js+3 added-4 removed
685 unmodified lines
686 ? '<' + arg.name + '>'687 : '[' + arg.name + ']';688 });689690 var usage = '[options'691 + (this.commands.length ? '] [command' : '')692 + ']'693 + (this._args.length ? ' ' + args : '');690 var usage = '[options]'691 + (this.commands.length ? ' [command]' : '')692 + (this._args.length ? ' ' + args.join(' ') : '');693694 if (0 == arguments.length) return this._usage || usage;695 this._usage = str;696
154 unmodified lines