Skip to content
Myr

Do not print default for --no-

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

authored by なつき · committed by Roman Vanesyan · parent ff712f1 · 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:index.js+1 added-1 removed
962 unmodified lines
963964 // Append the help information965 return this.options.map(function(option) {966 return pad(option.flags, width) + ' ' + option.description967 + (option.defaultValue !== undefined ? ' (default: ' + option.defaultValue + ')' : '');967 + ((option.bool != false && option.defaultValue !== undefined) ? ' (default: ' + option.defaultValue + ')' : '');968 }).concat([pad('-h, --help', width) + ' ' + 'output usage information'])969 .join('\n');970};971
187 unmodified lines