summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-11-18 20:53:41 +0000
committerbwarsaw2002-11-18 20:53:41 +0000
commitafd5c20a5f577aa1e09500680d70460a2d61e6f0 (patch)
treed9a325b4b35fb3096b9f0e91827859c6320181cc
parent87e2d887f881038d45e1bc52e9468fd536188f2e (diff)
downloadmailman-afd5c20a5f577aa1e09500680d70460a2d61e6f0.tar.gz
mailman-afd5c20a5f577aa1e09500680d70460a2d61e6f0.tar.zst
mailman-afd5c20a5f577aa1e09500680d70460a2d61e6f0.zip
-rw-r--r--bin/arch12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/arch b/bin/arch
index c5934d6b4..7837187fc 100644
--- a/bin/arch
+++ b/bin/arch
@@ -28,6 +28,9 @@ Where options are:
-h / --help
Print this help message and exit.
+ -q / --quiet
+ Make the archiver output less verbose.
+
-s N
--start=N
Start indexing at article N, where article 0 is the first in the mbox.
@@ -83,13 +86,14 @@ def usage(code, msg=''):
def main():
# get command line arguments
try:
- opts, args = getopt.getopt(sys.argv[1:], 'hs:e:',
- ['help', 'start', 'end'])
+ opts, args = getopt.getopt(sys.argv[1:], 'hs:e:q',
+ ['help', 'start', 'end', 'quiet'])
except getopt.error, msg:
usage(1, msg)
start = None
end = None
+ verbose = 1
for opt, arg in opts:
if opt in ('-h', '--help'):
usage(0)
@@ -103,6 +107,8 @@ def main():
end = int(arg)
except ValueError:
usage(1)
+ elif opt in ('-q', '--quiet'):
+ verbose = 0
# grok arguments
if len(args) < 1:
@@ -150,7 +156,7 @@ def main():
usage(3, _('Cannot open mbox file %(mbox)s: %(msg)s'))
archiver = HyperArchive(mlist)
- archiver.VERBOSE = 1
+ archiver.VERBOSE = verbose
try:
archiver.processUnixMailbox(fp, start, end)
finally: