diff options
| author | bwarsaw | 2002-03-14 23:42:20 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-14 23:42:20 +0000 |
| commit | 6034f6891bb0b925da9c63709c548318366f8a60 (patch) | |
| tree | 7a2f4da9a82359a6cd2752d8da2a86d13cdf2b5f /bin | |
| parent | db163b3d1662141ad7898b8b324f25a3e0117a57 (diff) | |
| download | mailman-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/withlist | 11 |
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: |
