summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormsapiro2005-12-02 02:05:15 +0000
committermsapiro2005-12-02 02:05:15 +0000
commitcc30bd2bdf42c52d5c9509071541f1cad0b760fd (patch)
treee205ed37dedfdb97d4406b84f41dc38f3129d148 /bin
parente96224218659ad4efc79651ca145ff92f4ddc1f3 (diff)
downloadmailman-cc30bd2bdf42c52d5c9509071541f1cad0b760fd.tar.gz
mailman-cc30bd2bdf42c52d5c9509071541f1cad0b760fd.tar.zst
mailman-cc30bd2bdf42c52d5c9509071541f1cad0b760fd.zip
Arg checking too agressive - didn't allow 0 args with --fromall and --file=
Diffstat (limited to 'bin')
-rwxr-xr-xbin/remove_members8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/remove_members b/bin/remove_members
index af5e487e4..efd91ff4e 100755
--- a/bin/remove_members
+++ b/bin/remove_members
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -110,9 +110,6 @@ def main():
except getopt.error, msg:
usage(1, msg)
- if len(args) < 1:
- usage(1)
-
filename = None
all = False
alllists = False
@@ -134,6 +131,9 @@ def main():
elif opt in ('-N', '--noadminack'):
admin_notif = False
+ if len(args) < 1 and not (filename and alllists):
+ usage(1)
+
# You probably don't want to delete all the users of all the lists -- Marc
if all and alllists:
usage(1)