We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a62a0 commit 8298b44Copy full SHA for 8298b44
kadai3/imura81gt/rget/cmd/rget/main.go
@@ -9,10 +9,14 @@ import (
9
)
10
11
func main() {
12
+ concurrency := flag.Int("c", 1, "concurrency")
13
+ outputDir := flag.String("o", "./", "output directory")
14
+
15
+ flag.Parse()
16
option := rget.Option{
- Concurrency: *flag.Int("c", 10, "concurrency"),
17
+ Concurrency: *concurrency,
18
+ OutputDir: *outputDir,
19
}
- flag.Parse()
20
urls := flag.Args()
21
if len(urls) != 1 {
22
fmt.Fprintf(os.Stderr, "%s <url>\n", os.Args[0])
@@ -21,6 +25,7 @@ func main() {
25
os.Exit(1)
26
23
27
24
- option.Url = urls[0]
28
+ option.URL = urls[0]
29
+ fmt.Println(option)
30
rget.Run(option)
31
0 commit comments