From 53760b621193a3ffb9ca596b7d58ae2834892772 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 10 Oct 2020 00:34:22 +0200 Subject: [PATCH] fixed parseArgs --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d9d7188..9fa925f 100644 --- a/main.go +++ b/main.go @@ -164,7 +164,7 @@ func getAppImageURL(hostname string, token string, appID int) (string, error) { func parseArgs() (string, string) { - if len(os.Args) < 2 { + if len(os.Args) < 3 { fmt.Println("Usage: gotify-dektop ") os.Exit(1) }