We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98ebfd2 commit 0e05616Copy full SHA for 0e05616
lib/thor/parser/arguments.rb
@@ -122,7 +122,7 @@ def parse_array(name)
122
value = shift
123
if !value.empty? && @switches.is_a?(Hash) && switch = @switches[name]
124
if switch.enum && !switch.enum.include?(value)
125
- raise MalformattedArgumentError, "Expected all values of '#{name}' to be one of #{switch.enum.join(', ')}; got #{value}"
+ raise MalformattedArgumentError, "Expected all values of '#{name}' to be one of #{switch.enum_to_s}; got #{value}"
126
end
127
128
array << value
0 commit comments