@@ -155,27 +155,31 @@ func main() {
155
155
}
156
156
}
157
157
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.
159
159
160
160
Usage:
161
161
162
162
bat [flags] [METHOD] URL [ITEM [ITEM]]
163
163
164
164
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)
169
169
170
170
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).
172
172
173
173
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.
176
176
177
177
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
179
183
180
184
Example:
181
185
0 commit comments