fixed parseArgs

This commit is contained in:
Niklas 2020-10-10 00:34:22 +02:00
parent bc77a54f25
commit 53760b6211

View File

@ -164,7 +164,7 @@ func getAppImageURL(hostname string, token string, appID int) (string, error) {
func parseArgs() (string, string) { func parseArgs() (string, string) {
if len(os.Args) < 2 { if len(os.Args) < 3 {
fmt.Println("Usage: gotify-dektop <hostname> <token>") fmt.Println("Usage: gotify-dektop <hostname> <token>")
os.Exit(1) os.Exit(1)
} }