mirror of
https://github.com/lingble/Mailu.git
synced 2026-03-20 03:50:30 +00:00
better help formatting
(cherry picked from commit 25cf8b5358)
# Conflicts:
# core/admin/mailu/manage.py
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user