summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorbwarsaw2002-03-14 23:42:20 +0000
committerbwarsaw2002-03-14 23:42:20 +0000
commit6034f6891bb0b925da9c63709c548318366f8a60 (patch)
tree7a2f4da9a82359a6cd2752d8da2a86d13cdf2b5f /bin
parentdb163b3d1662141ad7898b8b324f25a3e0117a57 (diff)
downloadmailman-6034f6891bb0b925da9c63709c548318366f8a60.tar.gz
mailman-6034f6891bb0b925da9c63709c548318366f8a60.tar.zst
mailman-6034f6891bb0b925da9c63709c548318366f8a60.zip
-i is now optional unless the -r option is given. IOW, we always drop
into interactive mode unless we --run.
Diffstat (limited to 'bin')
-rw-r--r--bin/withlist11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/withlist b/bin/withlist
index cfb97ccc3..da5c03876 100644
--- a/bin/withlist
+++ b/bin/withlist
@@ -44,7 +44,7 @@ Options:
-i / --interactive
Leaves you at an interactive prompt after all other processing is
- complete.
+ complete. This is the default unless the -r option is given.
--run [module.]callable
-r [module.]callable
@@ -199,7 +199,7 @@ def main():
usage(1, msg)
run = None
- interact = 0
+ interact = None
all = 0
for opt, arg in opts:
if opt in ('-h', '--help'):
@@ -221,6 +221,13 @@ def main():
if all and not run:
usage(1, _('--all requires --run'))
+ # The default for interact is 1 unless -r was given
+ if interact is None:
+ if run is None:
+ interact = 1
+ else:
+ interact = 0
+
# try to import the module for the callable
func = None
if run: