fixed parseArgs
This commit is contained in:
parent
bc77a54f25
commit
53760b6211
2
main.go
2
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user