Skip to content
Myr

Use empty string for name if parse not called to avoid printing undefined in help output

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

authored by Peter Lyons · committed by Peter Lyons · parent 46f6628 · Browse files · 2 files+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

2 files+4 added−1 removed

  • tests:+3 added−0 removed
  • other:+1 added−1 removed

2 files+4 added−1 removed

modified:test/test.options.defaults.js+3 added
modified:index.js+1 added-1 removed
90 unmodified lines
91function Command(name) {92 this.commands = [];93 this.options = [];94 this._args = [];95 this._name = name;95 this._name = name || '';96}9798/**99 * Inherit from `EventEmitter.prototype`.
1032 unmodified lines