Skip to content

Commit 628be21

Browse files
angadgill92bcoe
authored andcommitted
fix: don't bother calling JSON.stringify() on string default values (#891)
1 parent 30a1872 commit 628be21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/usage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ module.exports = function (yargs, y18n) {
413413
} else {
414414
switch (typeof value) {
415415
case 'string':
416-
string += JSON.stringify(value)
416+
string += '"' + value + '"'
417417
break
418418
case 'object':
419419
string += JSON.stringify(value)

0 commit comments

Comments
 (0)