Skip to content
Myr

When --no-* is used default to true

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f0b757f · Browse files · 2 files+19 added−0 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+19 added−0 removed

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

2 files+19 added−0 removed

modified:lib/commander.js+3 added
109 unmodified lines
110 var self = this111 , option = new Option(flags, description)112 , name = option.name();113114 // when --no-* we default to true115 if (false == option.bool) self[name] = true;116117 // register the option118 this.options.push(option);119120 // when it's passed assign the value
197 unmodified lines
added:test/test.options.bool.js+16 added