1diff --git a/go.mod b/go.mod
2index 6ec9ad4c3ea0771cc12e0f0a3feadff13616085b..66cf37dda6e09cd47f00ed6c86588d6e87ceb796 100644
3--- a/go.mod
4+++ b/go.mod
5@@ -3,6 +3,8 @@
6 go 1.20
7
8 require (
9- github.com/valyala/bytebufferpool v1.0.0 // indirect
10- github.com/valyala/quicktemplate v1.7.0 // indirect
11+ github.com/spf13/pflag v1.0.5
12+ github.com/valyala/quicktemplate v1.7.0
13 )
14+
15+require github.com/valyala/bytebufferpool v1.0.0 // indirect
16diff --git a/go.sum b/go.sum
17index 9b4d04803e4106351206e0a5975f5da6faffd9f0..ec4e9cf9cfdc351ce19f5c58eb68ec5ca39b1ee0 100644
18--- a/go.sum
19+++ b/go.sum
20@@ -3,6 +3,8 @@ github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
21 github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
22 github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
23 github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
24+github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
25+github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
26 github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
27 github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
28 github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus=
29diff --git a/main.go b/main.go
30index 3488c325f99c78bb095d7c5967f73eb84ab365a4..abeb557fe951b047a8b35b7b6c40533af7724667 100644
31--- a/main.go
32+++ b/main.go
33@@ -5,13 +5,13 @@ "archive/tar"
34 "bufio"
35 "compress/gzip"
36 "errors"
37- "flag"
38 "io"
39 "net/http"
40 "os"
41
42 "git.sr.ht/~gabrielgio/apkdoc/parser"
43 "git.sr.ht/~gabrielgio/apkdoc/templates"
44+ flag "github.com/spf13/pflag"
45 )
46
47 func fechIndex(url string) (io.ReadCloser, error) {
48@@ -28,9 +28,9 @@ return resp.Body, nil
49 }
50
51 func main() {
52- url := flag.String("url", "", "Url to the APKINDEX.tar.gz")
53- output := flag.String("output", "index.md", "Output path")
54- repositoryFormat := flag.String("repository-format", "https://git.sr.ht/~gabrielgio/apkbuilds/tree/%s/item/apks/%s", "Template to build repository link")
55+ url := flag.StringP("url", "u", "", "Url to the APKINDEX.tar.gz")
56+ output := flag.StringP("output", "o", "index.md", "Output path")
57+ repositoryFormat := flag.StringP("repository-format", "f", "https://git.sr.ht/~gabrielgio/apkbuilds/tree/%s/item/apks/%s", "Template to build repository link")
58 flag.Parse()
59
60 tarStream, err := fechIndex(*url)