summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_lists.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-17 12:54:26 -0400
committerBarry Warsaw2012-03-17 12:54:26 -0400
commit8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29 (patch)
tree4d107a8b995f113feed454bd8662986cff8888ba /src/mailman/commands/cli_lists.py
parent5aa8f097f1d7a96500ccd2ccfa2fedd6ac830786 (diff)
parent24991d17919f2715a7f2e875d2fb7fe72e53efcf (diff)
downloadmailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.tar.gz
mailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.tar.zst
mailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.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 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()