summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/cli_lists.py')
-rw-r--r--src/mailman/commands/cli_lists.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py
index 830d84470..035dce898 100644
--- a/src/mailman/commands/cli_lists.py
+++ b/src/mailman/commands/cli_lists.py
@@ -153,11 +153,20 @@ class Create:
'-q', '--quiet',
default=False, action='store_true',
help=_('Print less output.'))
- command_parser.add_argument(
+ domain_options = command_parser.add_mutually_exclusive_group()
+ domain_options.add_argument(
'-d', '--domain',
- default=False, action='store_true',
+ default=True, action='store_true',
+ help=_("""\
+ Register the mailing list's domain if not yet registered."""),
+ dest='domain')
+ domain_options.add_argument(
+ '-D', '--no-domain',
+ default=False, action='store_false',
help=_("""\
- Register the mailing list's domain if not yet registered."""))
+ Do not register the mailing list's domain if not already registered."""),
+ dest='domain')
+
# Required positional argument.
command_parser.add_argument(
'listname', metavar='LISTNAME', nargs=1,