diff options
| author | Mark Sapiro | 2012-03-18 14:52:28 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2012-03-18 14:52:28 -0700 |
| commit | 59297bfe19421820f66cb69cb4bd25c6ef3ee742 (patch) | |
| tree | fd9e6ea186a8e5f201bdde1a8ec843a5fca733f4 /src/mailman/commands/cli_lists.py | |
| parent | 2c954887453ed48f85e4318108475a382226c084 (diff) | |
| parent | ae15984804096db593d83740dcd4c158626eb22f (diff) | |
| download | mailman-59297bfe19421820f66cb69cb4bd25c6ef3ee742.tar.gz mailman-59297bfe19421820f66cb69cb4bd25c6ef3ee742.tar.zst mailman-59297bfe19421820f66cb69cb4bd25c6ef3ee742.zip | |
Merged from trunk.
Diffstat (limited to 'src/mailman/commands/cli_lists.py')
| -rw-r--r-- | src/mailman/commands/cli_lists.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py index 5629f33c1..af6afe22d 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -252,12 +252,6 @@ class Remove: def add(self, parser, command_parser): """See `ICLISubCommand`.""" command_parser.add_argument( - '-a', '--archives', - default=False, action='store_true', - help=_("""\ -Remove the list's archives too, or if the list has already been deleted, -remove any residual archives.""")) - command_parser.add_argument( '-q', '--quiet', default=False, action='store_true', help=_('Suppress status messages')) @@ -278,15 +272,9 @@ remove any residual archives.""")) fqdn_listname = args.listname[0] mlist = getUtility(IListManager).get(fqdn_listname) if mlist is None: - if args.archives: - log(_('No such list: $fqdn_listname; ' - 'removing residual archives.')) - else: - log(_('No such list: $fqdn_listname')) - return + log(_('No such list: $fqdn_listname')) + return else: log(_('Removed list: $fqdn_listname')) - if not args.archives: - log(_('Not removing archives. Reinvoke with -a to remove them.')) - remove_list(fqdn_listname, mlist, args.archives) + remove_list(fqdn_listname, mlist) config.db.commit() |
