Update click_cmdb.py

add-user  remove --is_admin
This commit is contained in:
lovvvve 2023-07-13 15:18:47 +08:00 committed by GitHub
parent 77199c1b69
commit 7c83f9dca7
1 changed files with 2 additions and 6 deletions

View File

@ -162,18 +162,14 @@ def cmdb_init_acl():
'--mail',
help='mail'
)
@click.option(
'--is_admin',
is_flag=True
)
@with_appcontext
def add_user(user, password, mail, is_admin):
def add_user(user, password, mail):
"""
create a user
is_admin: default is False
Example: flask add-user -u <username> -p <password> -m <mail> [--is_admin]
Example: flask add-user -u <username> -p <password> -m <mail>
"""
assert user is not None
assert password is not None