better help formatting

(cherry picked from commit 25cf8b5358)

# Conflicts:
#	core/admin/mailu/manage.py
This commit is contained in:
Alexander Graf
2021-09-13 15:13:29 +02:00
committed by Mergify
parent 3ffbca734b
commit 2bb1869ab2

View File

@@ -49,10 +49,14 @@ def advertise():
@click.argument('domain_name')
@click.argument('password')
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 25cf8b53 (better help formatting)
@click.option('-m', '--mode', default='create', metavar='MODE', help='''\b'create' (default): create user. it's an error if user already exists
'ifmissing': only update password if user is missing
'update': create user or update password if user exists
''')
<<<<<<< HEAD
@with_appcontext
def admin(localpart, domain_name, password, mode):
""" Create an admin user
@@ -66,6 +70,11 @@ def admin(localpart, domain_name, password, mode):
- 'ifmissing': if user exists, nothing happens, else it will be created
- 'update': user is created or, if it exists, its password gets updated
>>>>>>> b63081cb (display error (not exception) when creating admin)
=======
@with_appcontext
def admin(localpart, domain_name, password, mode):
""" Create an admin user
>>>>>>> 25cf8b53 (better help formatting)
"""
if not mode in ('create', 'update', 'ifmissing'):