1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Fix a typo on the binary help command

This commit is contained in:
Paulo L F Casaretto 2012-06-26 10:26:22 -03:00
parent 9c08f47bcb
commit 14f2c54dc8

2
bin/httparty Normal file → Executable file
View file

@ -38,7 +38,7 @@ OptionParser.new do |o|
end end
end end
o.on("-H", "--header [NAME=VALUE]", "Additional HTTP headers in NAME=VALUE form") do |h| o.on("-H", "--header [NAME:VALUE]", "Additional HTTP headers in NAME:VALUE form") do |h|
abort "Invalid header specification, should be Name:Value" unless h =~ /.+:.+/ abort "Invalid header specification, should be Name:Value" unless h =~ /.+:.+/
name, value = h.split(':') name, value = h.split(':')
opts[:headers][name.strip] = value.strip opts[:headers][name.strip] = value.strip