Skip to content

Commit

Permalink
fix: don't bother calling JSON.stringify() on string default values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
angadgill92 authored and bcoe committed Jun 26, 2017
1 parent 30a1872 commit 628be21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/usage.js
Expand Up @@ -413,7 +413,7 @@ module.exports = function (yargs, y18n) {
} else {
switch (typeof value) {
case 'string':
string += JSON.stringify(value)
string += '"' + value + '"'
break
case 'object':
string += JSON.stringify(value)
Expand Down

0 comments on commit 628be21

Please sign in to comment.