diff --git a/README.mkd b/README.mkd index 0a8bf16..27f0b6e 100644 --- a/README.mkd +++ b/README.mkd @@ -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 Set the concurrency level (defaut: 20) - -d, --delay Milliseconds between requests to the same host (default: 5000) + -b, --body Set the request body + -c, --concurrency Set the concurrency level (default: 20) + -d, --delay Milliseconds between requests to the same host (default: 5000) -H, --header
Send a custom HTTP header + -L, --location Follow redirects / location header -r, --rawhttp Use the rawhttp library for requests (experimental) -s, --savestatus Save only responses with specific status code + -t, --timeout Set the HTTP timeout (default: 10000) -v, --verbose Verbose mode -X, --method HTTP method (default: GET) @@ -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 diff --git a/args.go b/args.go index 90cca52..ecad284 100644 --- a/args.go +++ b/args.go @@ -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 Set the request body\n" @@ -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)