diff options
| author | Gurkirpal | 2016-03-15 19:03:21 +0530 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-22 09:39:03 -0400 |
| commit | 75941917d8c57b41e2583079f22863326ebf9920 (patch) | |
| tree | 15a80a4c1e0aebe5cc5342cc757b9156063da46b /src/mailman/commands/cli_lists.py | |
| parent | 472eb9765f4163aad785f483584ff607f01fdeeb (diff) | |
| download | mailman-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.py | 15 |
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, |
