Skip to content

Commit

Permalink
Merge pull request #35 from kffl/fix/header-flag
Browse files Browse the repository at this point in the history
fix: --header flag not being recognized
  • Loading branch information
kffl authored Jan 9, 2022
2 parents 24179a6 + 9282b8c commit d3c6847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Flags:
--method=GET The HTTP request method (GET, POST, PUT, PATCH or
DELETE).
-b, --body="{data..." HTTP request body.
-h, --header="k:v" ... HTTP request header(s). You can set more than one
header by repeating this flag.
--trust-all Omit SSL certificate validation.
-f, --format=default Load test report format. Either 'default' (verbose),
'json' or 'yaml'. When json or yaml is specified,
Expand Down
2 changes: 1 addition & 1 deletion args.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func parseArgs() (common.Config, error) {
Int(),
Method: app.Flag("method", "The HTTP request method (GET, POST, PUT, PATCH or DELETE).").Default("GET").Enum("GET", "POST", "PUT", "PATCH", "DELETE"),
Body: parseRequestBody(app.Flag("body", "HTTP request body.").Short('b').PlaceHolder("\"{data...\"")),
Headers: parseRequestHeaders(kingpin.Flag("header", "HTTP request header(s). You can set more than one header by repeating this flag.").Short('h').PlaceHolder("\"k:v\"")),
Headers: parseRequestHeaders(app.Flag("header", "HTTP request header(s). You can set more than one header by repeating this flag.").Short('h').PlaceHolder("\"k:v\"")),
TrustAll: app.Flag("trust-all", "Omit SSL certificate validation.").Bool(),
Format: app.Flag("format", "Load test report format. Either 'default' (verbose), 'json' or 'yaml'. When json or yaml is specified, apart from the load test results, no additional info will be written to std out.").
Short('f').
Expand Down

0 comments on commit d3c6847

Please sign in to comment.