Updated flags in README.

This commit is contained in:
Jakub Roztocil 2012-07-20 23:51:05 +02:00
parent 57fc606f6b
commit c271715a98

View File

@ -187,12 +187,12 @@ See ``http -h`` for more details::
include one. include one.
ITEM A key-value pair whose type is defined by the ITEM A key-value pair whose type is defined by the
separator used. It can be an HTTP header separator used. It can be an HTTP header
(header:value), a query parameter (name=:value), (header:value), a data field to be used in the request
a data field to be used in the request body body (field_name=value), a raw JSON data field
(field_name=value), a raw JSON data field (field_name:=value), a query parameter (name=:value),
(field_name:=value), or a file field or a file field (field_name@/path/to/file). You can
(field_name@/path/to/file). You can use a backslash to use a backslash to escape a colliding separator in the
escape a colliding separator in the field name. field name.
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
@ -213,11 +213,14 @@ See ``http -h`` for more details::
redirected. redirected.
--ugly, -u Do not prettify the response. --ugly, -u Do not prettify the response.
--print OUTPUT_OPTIONS, -p OUTPUT_OPTIONS --print OUTPUT_OPTIONS, -p OUTPUT_OPTIONS
String specifying what should the output contain. "H" String specifying what the output should contain: "H"
stands for the request headers and "B" for the request stands for the request headers, and "B" for the
body. "h" stands for the response headers and "b" for request body. "h" stands for the response headers and
response the body. Defaults to "hb" which means that "b" for response the body. The default behaviour is
the whole response (headers and body) is printed. "hb" (i.e., the response headers and body is printed),
if standard output is not redirected. If the output is
piped to another program or to a file, then only the
body is printed by default.
--verbose, -v Print the whole request as well as the response. --verbose, -v Print the whole request as well as the response.
Shortcut for --print=HBhb. Shortcut for --print=HBhb.
--headers, -t Print only the response headers. Shortcut for --headers, -t Print only the response headers. Shortcut for
@ -232,8 +235,8 @@ See ``http -h`` for more details::
make sure that the $TERM environment variable is set make sure that the $TERM environment variable is set
to "xterm-256color" or similar (e.g., via `export TERM to "xterm-256color" or similar (e.g., via `export TERM
=xterm-256color' in your ~/.bashrc). =xterm-256color' in your ~/.bashrc).
--auth AUTH, -a AUTH username:password. If the password is omitted (-a --auth AUTH, -a AUTH username:password. If only the username is provided
username), HTTPie will prompt for it. (-a username), HTTPie will prompt for the password.
--auth-type {basic,digest} --auth-type {basic,digest}
The authentication mechanism to be used. Defaults to The authentication mechanism to be used. Defaults to
"basic". "basic".