Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINOR: updating readme with current help output #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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