fix: command flags

This commit is contained in:
Tom Andrade 2022-05-17 14:26:34 +02:00
parent 084f1b7aa9
commit bb6ecd0a86
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -71,8 +71,8 @@ func main() {
version = flag.Bool("v", false, "prints current version")
listenAddr string
)
flag.StringVar(&shortie.DumpFile, "urls.json", "Path to the file to dump the kv db", "urls.json")
flag.IntVar(&shortie.URLSize, "Define the size of the shortened String, default 10", 10, "10")
flag.StringVar(&shortie.DumpFile, "dumpfile", "Path to the file to dump the kv db", "urls.json")
flag.IntVar(&shortie.URLSize, "size", 10, "Define the size of the shortened String")
flag.Parse()