Skip to content

Commit f1ba900

Browse files
nobutenderlove
authored andcommitted
Simply dump strings to escape
1 parent 0442307 commit f1ba900

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/thor/parser/argument.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ def initialize(name, options = {})
2626

2727
def print_default
2828
if @type == :array and @default.is_a?(Array)
29-
@default.map { |x|
30-
p = x.gsub('"','\\"')
31-
"\"#{p}\""
32-
}.join(" ")
29+
@default.map(&:dump).join(" ")
3330
else
3431
@default
3532
end

0 commit comments

Comments
 (0)