From 727c6268b91a3deaf20c284a55701b9fedb312e6 Mon Sep 17 00:00:00 2001 From: Kenix Date: Mon, 20 Jun 2022 13:25:31 -0400 Subject: [PATCH] Updating order of variables ntfy user add command. --- cmd/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/user.go b/cmd/user.go index e9bc7b2..07970fd 100644 --- a/cmd/user.go +++ b/cmd/user.go @@ -137,9 +137,9 @@ Examples: } func execUserAdd(c *cli.Context) error { - password := c.String("user") - role := auth.Role(c.String("role")) username = c.Args().Get(0) + role := auth.Role(c.String("role")) + password := c.String("user") if username == "" { return errors.New("username expected, type 'ntfy user add --help' for help") } else if username == userEveryone {