Skip to content

Commit

Permalink
Update flag descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Oct 4, 2020
1 parent e963eff commit d99d0d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ brew install nakabonne/ali/ali
**Via APT**

```bash
wget https://github.com/nakabonne/ali/releases/download/v0.3.1/ali_0.3.1_linux_amd64.deb
apt install ./ali_0.3.1_linux_amd64.deb
wget https://github.com/nakabonne/ali/releases/download/v0.3.2/ali_0.3.2_linux_amd64.deb
apt install ./ali_0.3.2_linux_amd64.deb
```

**Via RPM**

```bash
curl -OL https://github.com/nakabonne/ali/releases/download/v0.3.1/ali_0.3.1_linux_amd64.rpm
rpm -i ./ali_0.3.1_linux_amd64.rpm
curl -OL https://github.com/nakabonne/ali/releases/download/v0.3.2/ali_0.3.2_linux_amd64.rpm
rpm -i ./ali_0.3.2_linux_amd64.rpm
```

**Via AUR**
Expand Down Expand Up @@ -74,6 +74,8 @@ Flags:
--debug Run in debug mode.
-d, --duration duration The amount of time to issue requests to the targets. Give 0s for an infinite attack. (default 10s)
-H, --header strings A request header to be sent. Can be used multiple times to send multiple headers.
-k, --keepalive Use persistent connections. (default true)
-M, --max-body int Max bytes to capture from response bodies. Give -1 for no limit. (default -1)
-m, --method string An HTTP request method for each request. (default "GET")
-r, --rate int The request rate per second to issue against the targets. Give 0 then it will send requests as fast as possible. (default 50)
-t, --timeout duration The timeout for each request. 0s means to disable timeouts. (default 30s)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func main() {
flagSet.StringSliceVarP(&c.headers, "header", "H", []string{}, "A request header to be sent. Can be used multiple times to send multiple headers.")
flagSet.StringVarP(&c.body, "body", "b", "", "A request body to be sent.")
flagSet.StringVarP(&c.bodyFile, "body-file", "B", "", "The path to file whose content will be set as the http request body.")
flagSet.Int64VarP(&c.maxBody, "max-body", "M", 0, "Maximum number of bytes to capture from response bodies")
flagSet.Int64VarP(&c.maxBody, "max-body", "M", -1, "Max bytes to capture from response bodies. Give -1 for no limit.")
flagSet.BoolVarP(&c.version, "version", "v", false, "Print the current version.")
flagSet.BoolVar(&c.debug, "debug", false, "Run in debug mode.")
flagSet.BoolVarP(&c.keepAlive, "keepalive", "K", false, "Use persistent connections if keepalive is set to true. (default false)")
flagSet.BoolVarP(&c.keepAlive, "keepalive", "k", true, "Use persistent connections.")
flagSet.Usage = c.usage
if err := flagSet.Parse(os.Args[1:]); err != nil {
if !errors.Is(err, flag.ErrHelp) {
Expand Down

0 comments on commit d99d0d9

Please sign in to comment.