Skip to content
Myr

Merge pull request #17 from jimisaacs/master

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

Allow for empty [optional] options and actually default them to their default

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 15814b9, 3bfe216 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/commander.js+1 added-1 removed
289 unmodified lines
290 self[name] = null == val291 ? (option.bool292 ? defaultValue || true : false293 ) : val;294 } else {294 } else if (null !== val) {295 // reassign296 self[name] = val;297 }298 });
605 unmodified lines