summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-15 19:06:22 -0700
committerBarry Warsaw2012-03-15 19:06:22 -0700
commit44ec37f890c7d4d35504d8f2e56c01abe8c60940 (patch)
tree1be17a33b6deb243abb7397b5038ede72411614b /src/mailman/commands/cli_lists.py
parentbcc42e2201c7172848185e5675a7b79e3d28aa0f (diff)
downloadmailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.tar.gz
mailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.tar.zst
mailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.zip
Diffstat (limited to 'src/mailman/commands/cli_lists.py')
-rw-r--r--src/mailman/commands/cli_lists.py18
1 files changed, 3 insertions, 15 deletions
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
@@ -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()