Skip to content

Commit 40db2dc

Browse files
committed
Merge pull request astaxie#1 from andyjeffries/andyjeffries-doc-patch
Cleaned-up usageinfo
2 parents 8741e86 + 882a2f6 commit 40db2dc

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

bat.go

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,27 +155,31 @@ func main() {
155155
}
156156
}
157157

158-
var usageinfo string = `bat is a Go implement CLI, cURL-like tool for humans.
158+
var usageinfo string = `bat is a Go implemented CLI cURL-like tool for humans.
159159
160160
Usage:
161161
162162
bat [flags] [METHOD] URL [ITEM [ITEM]]
163163
164164
flags:
165-
-a,-auth USER[:PASS]: Pass a username:password pair as the argument
166-
-f,-form=false: Submitting the data as forms
167-
-j,-json=true: Send the data in json object
168-
-v,-verbose=false: Print the whole HTTP exchange (request and response).
165+
-a, -auth USER[:PASS] Pass a username:password pair as the argument
166+
-f, -form=false Submitting the data as forms
167+
-j, -json=true Send the data in json object
168+
-v, -verbose=false Print the whole HTTP exchange (request and response)
169169
170170
METHOD:
171-
bat defaults to either GET (with no request data) or POST (with request data).
171+
bat defaults to either GET (if there is no request data) or POST (with request data).
172172
173173
URL:
174-
The only information needs to perform a request is a URL.The default scheme is http://,
175-
can be omitted from the argument, example.org works just fine.
174+
The only information needed to perform a request is a URL. The default scheme is http://,
175+
which can be omitted from the argument; example.org works just fine.
176176
177177
ITEM:
178-
Can any of QueryString, Header, Post data.
178+
Can be any of:
179+
Query string key=value
180+
Header key:value
181+
Post data key=value
182+
File upload key@/path/file
179183
180184
Example:
181185

0 commit comments

Comments
 (0)