Skip to content
Myr

Fix to change default value to string

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

authored by abetomo · committed by Roman Vanesyan · parent 54b7f14 · 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.

Trailers

  • fixes: https://github.com/tj/commander.js/issues/855

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
1051 unmodified lines
10521053 // Append the help information1054 return this.options.map(function(option) {1055 return pad(option.flags, width) + ' ' + option.description +1056 ((option.bool && option.defaultValue !== undefined) ? ' (default: ' + option.defaultValue + ')' : '');1056 ((option.bool && option.defaultValue !== undefined) ? ' (default: ' + JSON.stringify(option.defaultValue) + ')' : '');1057 }).concat([pad('-h, --help', width) + ' ' + 'output usage information'])1058 .join('\n');1059};1060
177 unmodified lines