Skip to content
Myr

Merge pull request #143 from focusaurus/bugfix-name-defaults-to-empty

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

Use empty string for name if parse not called to avoid printing undefine...

authored by Zhiye Li · committed by Zhiye Li · parents f68ab32, 3261f3e · 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
84 unmodified lines
85 this.options = [];86 this._execs = {};87 this._allowUnknownOption = false;88 this._args = [];89 this._name = name;89 this._name = name || '';90}9192/**93 * Inherit from `EventEmitter.prototype`.
1010 unmodified lines