Browse Source

Wrong order of parameter for "flaskbb users update" (CLI) (#444)

* fix update user params

* Update users.py
turtle 7 years ago
parent
commit
927b23473a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flaskbb/cli/users.py

+ 2 - 2
flaskbb/cli/users.py

@@ -53,10 +53,10 @@ def new_user(username, email, password, group):
 @click.option("--password", "-p", help="The password of the user.")
 @click.option("--password", "-p", help="The password of the user.")
 @click.option("--group", "-g", help="The group of the user.",
 @click.option("--group", "-g", help="The group of the user.",
               type=click.Choice(["admin", "super_mod", "mod", "member"]))
               type=click.Choice(["admin", "super_mod", "mod", "member"]))
-def change_user(username, password, email, group):
+def change_user(username, email, password, group):
     """Updates an user. Omit any options to use the interactive mode."""
     """Updates an user. Omit any options to use the interactive mode."""
 
 
-    user = prompt_save_user(username, password, email, group, only_update=True)
+    user = prompt_save_user(username, email, password, group, only_update=True)
     if user is None:
     if user is None:
         raise FlaskBBCLIError("The user with username {} does not exist."
         raise FlaskBBCLIError("The user with username {} does not exist."
                               .format(username), fg="red")
                               .format(username), fg="red")