Updating order of variables ntfy user add command.
This commit is contained in:
parent
50cd50cfdf
commit
727c6268b9
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue