summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
authorGurkirpal2016-03-15 19:03:21 +0530
committerBarry Warsaw2016-03-22 09:39:03 -0400
commit75941917d8c57b41e2583079f22863326ebf9920 (patch)
tree15a80a4c1e0aebe5cc5342cc757b9156063da46b /src/mailman/commands/cli_lists.py
parent472eb9765f4163aad785f483584ff607f01fdeeb (diff)
downloadmailman-75941917d8c57b41e2583079f22863326ebf9920.tar.gz
mailman-75941917d8c57b41e2583079f22863326ebf9920.tar.zst
mailman-75941917d8c57b41e2583079f22863326ebf9920.zip
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,