lib/thor/parser/option.rb in thor-0.14.4 vs lib/thor/parser/option.rb in thor-0.14.5

- old
+ new

@@ -35,10 +35,10 @@ # The valid types are :boolean, :numeric, :hash, :array and :string. If none # is given a default type is assumed. This default type accepts arguments as # string (--foo=value) or booleans (just --foo). # # By default all options are optional, unless :required is given. - # + # def self.parse(key, value) if key.is_a?(Array) name, *aliases = key else name, aliases = key, []