Skip to content

Commit bfe5f42

Browse files
committed
Update --help
1 parent 8456d4b commit bfe5f42

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ USAGE:
130130
x8 [FLAGS] [OPTIONS]
131131
132132
FLAGS:
133-
--as-body Send parameters via body.
133+
--as-body Send parameters via body.
134134
Built in body types that can be detected automatically: json, urlencode
135135
--disable-cachebuster
136136
--disable-colors
@@ -144,16 +144,16 @@ FLAGS:
144144
variables' error messages
145145
-h, --help Prints help information
146146
--headers Switch to header discovery mode.
147-
Forbidden chars would be automatically removed from headers' names
147+
Forbidden chars would be automatically removed from headers names
148148
--http2 Prefer http/2 over http/1.1
149149
--is-json If the output is valid json and the content type does not contain 'json'
150150
keyword - specify this argument for a more accurate search
151151
--keep-newlines --body 'a\r\nb' -> --body 'a{{new_line}}b'.
152-
Works with body and parameter templates only
153-
--replay-once If replay proxy is specified, send all found parameters within one request
152+
Works with body and parameter templates only.
153+
--replay-once If replay proxy is specified, send all found parameters within one request.
154154
--test Prints request and response
155155
-V, --version Prints version information
156-
--verify Verify found parameters one more time
156+
--verify Verify found parameters one more time.
157157
158158
OPTIONS:
159159
-b, --body <body> Example: --body '{"x":{%s}}'
@@ -182,14 +182,14 @@ OPTIONS:
182182
-P, --param-template <parameter_template>
183183
%k - key, %v - value. Example: --param-template 'user[%k]=%v&'
184184
185-
--proto <proto> Uses when the request file is present. (default is "https")
185+
--proto <proto> Protocol to use with request file (default is "https")
186186
-x, --proxy <proxy>
187187
--replay-proxy <replay-proxy>
188-
Request target with every found parameter via replay proxy at the end
188+
Request target with every found parameter via replay proxy at the end.
189189
190-
-r, --request <request> The file with raw http request
190+
-r, --request <request> The file with the raw http request
191191
--save-responses <save-responses> Save matched responses to a directory
192-
-u, --url <url> You can add a custom injection point with %s
192+
-u, --url <url> You can add a custom injection point with %s.
193193
--value-size <value_size>
194194
Custom value size. Affects {{random}} variables as well (default is 5)
195195

src/args.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ pub fn get_config() -> (Config, usize) {
1313
.arg(Arg::with_name("url")
1414
.short("u")
1515
.long("url")
16-
.help("You can add a custom injection point with %s")
16+
.help("You can add a custom injection point with %s.")
1717
.takes_value(true)
1818
.conflicts_with("request")
1919
)
2020
.arg(Arg::with_name("request")
2121
.short("r")
2222
.long("request")
23-
.help("The file with raw http request")
23+
.help("The file with the raw http request")
2424
.takes_value(true)
2525
.conflicts_with("url")
2626
)
2727
.arg(Arg::with_name("proto")
2828
.long("proto")
29-
.help("Uses when the request file is present. (default is \"https\")")
29+
.help("Protocol to use with request file (default is \"https\")")
3030
.takes_value(true)
3131
.requires("request")
3232
.conflicts_with("url")
@@ -111,7 +111,7 @@ pub fn get_config() -> (Config, usize) {
111111
.arg(
112112
Arg::with_name("headers-discovery")
113113
.long("headers")
114-
.help("Switch to header discovery mode.\nForbidden chars would be automatically removed from headers' names")
114+
.help("Switch to header discovery mode.\nForbidden chars would be automatically removed from headers names")
115115
.conflicts_with("as-body")
116116
.conflicts_with("param-template")
117117
)
@@ -142,19 +142,19 @@ pub fn get_config() -> (Config, usize) {
142142
.arg(
143143
Arg::with_name("keep-newlines")
144144
.long("keep-newlines")
145-
.help("--body 'a\\r\\nb' -> --body 'a{{new_line}}b'.\nWorks with body and parameter templates only")
145+
.help("--body 'a\\r\\nb' -> --body 'a{{new_line}}b'.\nWorks with body and parameter templates only.")
146146
)
147147
.arg(
148148
Arg::with_name("replay-once")
149149
.long("replay-once")
150-
.help("If replay proxy is specified, send all found parameters within one request")
150+
.help("If replay proxy is specified, send all found parameters within one request.")
151151
.requires("replay-proxy")
152152
)
153153
.arg(
154154
Arg::with_name("replay-proxy")
155155
.takes_value(true)
156156
.long("replay-proxy")
157-
.help("Request target with every found parameter via replay proxy at the end")
157+
.help("Request target with every found parameter via replay proxy at the end.")
158158
)
159159
.arg(
160160
Arg::with_name("custom-parameters")
@@ -244,7 +244,7 @@ pub fn get_config() -> (Config, usize) {
244244
.arg(
245245
Arg::with_name("verify")
246246
.long("verify")
247-
.help("Verify found parameters one more time")
247+
.help("Verify found parameters one more time.")
248248
);
249249

250250
let args = app.clone().get_matches();

0 commit comments

Comments
 (0)