Skip to content

Commit

Permalink
Wrong order of parameter for "flaskbb users update" (CLI) (#444)
Browse files Browse the repository at this point in the history
* fix update user params

* Update users.py
  • Loading branch information
sumit-kothari authored and sh4nks committed Apr 9, 2018
1 parent bc64e93 commit 927b234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flaskbb/cli/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def new_user(username, email, password, group):
@click.option("--password", "-p", help="The password of the user.")
@click.option("--group", "-g", help="The group of the user.",
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."""

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:
raise FlaskBBCLIError("The user with username {} does not exist."
.format(username), fg="red")
Expand Down

0 comments on commit 927b234

Please sign in to comment.