From 44ec37f890c7d4d35504d8f2e56c01abe8c60940 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 15 Mar 2012 19:06:22 -0700 Subject: Eradicate Pipermail. Everything but the scrubber test works. That will take some new APIs I suspect. --- src/mailman/commands/cli_lists.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 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 42e67e3a8..5ae6499e9 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -251,12 +251,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', @@ -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() -- cgit v1.2.3-70-g09d2