diff --git a/lib/thor/parser/argument.rb b/lib/thor/parser/argument.rb index 01820111..0cd1f7bf 100644 --- a/lib/thor/parser/argument.rb +++ b/lib/thor/parser/argument.rb @@ -26,10 +26,7 @@ def initialize(name, options = {}) def print_default if @type == :array and @default.is_a?(Array) - @default.map { |x| - p = x.gsub('"','\\"') - "\"#{p}\"" - }.join(" ") + @default.map(&:dump).join(" ") else @default end