Skip to content

Commit 0be7dc4

Browse files
committed
.
1 parent 9d99a9c commit 0be7dc4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

aria2update

7.88 MB
Binary file not shown.

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module aria2update
2+
3+
go 1.14

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"bufio"
55
"flag"
6+
"fmt"
67
"net/http"
78
"os"
89
"path/filepath"
@@ -63,6 +64,8 @@ func main() {
6364
flag.Parse()
6465
if len(flag.Arg(0)) > 0 {
6566
listUrl = flag.Arg(0)
67+
} else {
68+
fmt.Print("Usage:\n\t./aria2-trackers\nOr:\n\t./aria2-trackers [url of list]\n")
6669
}
6770
list1, err := downloadList()
6871
if err != nil {

0 commit comments

Comments
 (0)