Skip to content

Commit

Permalink
Better string representation of default values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ford committed Nov 22, 2013
1 parent 6134619 commit a746a31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ function Argv (processArgs, cwd) {
: null
,
options.default[key] !== undefined
? '[default: ' + JSON.stringify(options.default[key]) + ']'
? '[default: ' + (typeof defaults[key] === 'string' ?
JSON.stringify : String)(defaults[key]) + ']'
: null
].filter(Boolean).join(' ');

Expand Down

0 comments on commit a746a31

Please sign in to comment.