Skip to content

Loading…

Fix a typo on the binary help command #151

Merged
merged 1 commit into from

2 participants

@pcasaretto

--help said to use -H Header=value but it was actually -H Header:Value

@jnunemaker jnunemaker merged commit 892397d into jnunemaker:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 26, 2012
  1. @pcasaretto
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/httparty
View
2 bin/httparty 100644 → 100755
@@ -38,7 +38,7 @@ OptionParser.new do |o|
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 =~ /.+:.+/
name, value = h.split(':')
opts[:headers][name.strip] = value.strip
Something went wrong with that request. Please try again.