Skip to content

Commit

Permalink
MINOR: updating readme with current help output
Browse files Browse the repository at this point in the history
  • Loading branch information
spekulatius committed Jun 4, 2020
1 parent 9daab00 commit 225ce46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,17 @@ meg's help output tries to actually be helpful:
Request many paths for many hosts
Usage:
meg [options] [path|pathsFile] [hostsFile] [outputDir]
meg [options] [path|pathsFile] [host|hostsFile] [outputDir]
Options:
-c, --concurrency <val> Set the concurrency level (defaut: 20)
-d, --delay <val> Milliseconds between requests to the same host (default: 5000)
-b, --body <val> Set the request body
-c, --concurrency <val> Set the concurrency level (default: 20)
-d, --delay <millis> Milliseconds between requests to the same host (default: 5000)
-H, --header <header> Send a custom HTTP header
-L, --location Follow redirects / location header
-r, --rawhttp Use the rawhttp library for requests (experimental)
-s, --savestatus <status> Save only responses with specific status code
-t, --timeout <millis> Set the HTTP timeout (default: 10000)
-v, --verbose Verbose mode
-X, --method <method> HTTP method (default: GET)
Expand All @@ -162,7 +165,7 @@ Examples:
meg /robots.txt
meg -s 200 -X HEAD
meg -c 30 /
meg hosts.txt paths.txt output
meg paths.txt hosts.txt output
```

### Concurrency
Expand Down
4 changes: 3 additions & 1 deletion args.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func init() {
h := "Request many paths for many hosts\n\n"

h += "Usage:\n"
h += " meg [path|pathsFile] [hostsFile] [outputDir]\n\n"
h += " meg [options] [path|pathsFile] [host|hostsFile] [outputDir]\n\n"

h += "Options:\n"
h += " -b, --body <val> Set the request body\n"
Expand Down Expand Up @@ -195,6 +195,8 @@ func init() {

h += "Examples:\n"
h += " meg /robots.txt\n"
h += " meg -s 200 -X HEAD\n"
h += " meg -c 30 /\n"
h += " meg paths.txt hosts.txt output\n"

fmt.Fprintf(os.Stderr, h)
Expand Down

0 comments on commit 225ce46

Please sign in to comment.