You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,13 @@ Binary file will be built at ./bin/hget, you can copy to /usr/bin or /usr/local/
17
17
## Usage
18
18
19
19
```bash
20
-
hget [-n parallel] [-skip-tls false] [-proxy proxy_server] [-file filename] [URL] # to download url, with n connections, and not skip tls certificate
20
+
hget [-n parallel] [-skip-tls false] [-rate bwRate] [-proxy proxy_server] [-file filename] [URL] # to download url, with n connections, and not skip tls certificate
21
21
hget tasks # get interrupted tasks
22
22
hget resume [TaskName | URL] # to resume task
23
23
hget -proxy "127.0.0.1:12345" URL # to download using socks5 proxy
24
24
hget -proxy "http://sample-proxy.com:8080" URL # to download using http proxy
25
25
hget -file sample.txt # to download a list of files
26
+
hget -n 4 -rate 100KB URL # to download using 4 threads & limited to 100Kb per second
skiptls:=flag.Bool("skip-tls", true, "skip verify certificate for https")
24
24
flag.StringVar(&proxy, "proxy", "", "proxy for downloading, ex \n\t-proxy '127.0.0.1:12345' for socks5 proxy\n\t-proxy 'http://proxy.com:8080' for http proxy")
25
25
flag.StringVar(&filepath, "file", "", "filepath that contains links in each line")
26
+
flag.StringVar(&bwLimit, "rate", "", "bandwidth limit to use while downloading, ex\n\t -rate 10kB\n\t-rate 10MiB")
0 commit comments