Merge pull request #116 from lovvvve/patch-3

Update click_cmdb.py
This commit is contained in:
pycook 2023-07-13 15:23:24 +08:00 committed by GitHub
commit 41ae241deb
1 changed files with 2 additions and 6 deletions

View File

@ -162,18 +162,14 @@ def cmdb_init_acl():
'--mail', '--mail',
help='mail' help='mail'
) )
@click.option(
'--is_admin',
is_flag=True
)
@with_appcontext @with_appcontext
def add_user(user, password, mail, is_admin): def add_user(user, password, mail):
""" """
create a user create a user
is_admin: default is False 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 user is not None
assert password is not None assert password is not None