Skip to content
Myr

Missed checking for null here in last pull request. Doesn't break anything either way, this just allows for empty [optional] options that have a default.

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

authored by Jim Isaacs · committed by Jim Isaacs · parent 15814b9 · 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