From 25cf8b53589a746e8ad45757dcb747c4ca7215ee Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Mon, 13 Sep 2021 15:13:29 +0200 Subject: [PATCH] better help formatting --- core/admin/mailu/manage.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/admin/mailu/manage.py b/core/admin/mailu/manage.py index d83efa9d..54f4b826 100644 --- a/core/admin/mailu/manage.py +++ b/core/admin/mailu/manage.py @@ -48,14 +48,13 @@ def advertise(): @click.argument('localpart') @click.argument('domain_name') @click.argument('password') -@click.option('-m', '--mode', default='create') +@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 +''') @with_appcontext def admin(localpart, domain_name, password, mode): """ Create an admin user - 'mode' can be: - - 'create': (default) create user. it's an error if user already exists - - 'ifmissing': if user exists, nothing happens, else it will be created - - 'update': user is created or, if it exists, its password gets updated """ if not mode in ('create', 'update', 'ifmissing'):