From 8d43e8f7848e080c588540fe2aecf481f167d5b2 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 22 Mar 2016 10:35:14 -0400 Subject: A bit of pre-merge cleanup. * Reorder some add_argument() parameters. * Reword some help text. * Reword some of the doctest language. * Clean up whitespace. * Minor coding style change in unittests. * Add another unittest. * Fix a docstring (not related to these change). * Add NEWS. --- src/mailman/commands/cli_lists.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/mailman/commands/cli_lists.py') diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py index 035dce898..3f31fda76 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -156,17 +156,19 @@ class Create: domain_options = command_parser.add_mutually_exclusive_group() domain_options.add_argument( '-d', '--domain', + dest='domain', default=True, action='store_true', help=_("""\ - Register the mailing list's domain if not yet registered."""), - dest='domain') + Register the mailing list's domain if not yet registered. This is + the default behavior, but these options are provided for backward + compatibility.""")) domain_options.add_argument( '-D', '--no-domain', + dest='domain', default=False, action='store_false', help=_("""\ - Do not register the mailing list's domain if not already registered."""), - dest='domain') - + Do not register the mailing list's domain if not already + registered.""")) # Required positional argument. command_parser.add_argument( 'listname', metavar='LISTNAME', nargs=1, -- cgit v1.2.3-70-g09d2