lib/args_parser/styles/equal.rb in args_parser-0.1.0 vs lib/args_parser/styles/equal.rb in args_parser-0.1.1

- old
+ new

@@ -7,10 +7,10 @@ STDERR.puts "Error: #{err.message} (--#{name}=#{value})" exit 1 end is_option = /^-+([^-=\s]+)$/ - is_param = /^-+([^-=\s]+)=([^=\s]+)$/ + is_param = /^-+([^-=\s]+)=(.+)$/ argv.each_with_index do |arg, i| if arg =~ is_option k,v = [arg.scan(is_option)[0][0], true] elsif arg =~ is_param k,v = arg.scan(is_param)[0]