summaryrefslogtreecommitdiff
path: root/Mailman/bin/bumpdigests.py
diff options
context:
space:
mode:
authormsapiro2006-10-24 03:55:24 +0000
committermsapiro2006-10-24 03:55:24 +0000
commit3256c431e7bf966d3de49e4dc31dd01d57ffb02f (patch)
treee0f32257c2bc73eec34e4ebf2f50c27b0ff23a66 /Mailman/bin/bumpdigests.py
parentf0a263b63991efc787bfd870bd7a491c53dce54a (diff)
downloadmailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.gz
mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.zst
mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.zip
Diffstat (limited to 'Mailman/bin/bumpdigests.py')
-rw-r--r--Mailman/bin/bumpdigests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/bin/bumpdigests.py b/Mailman/bin/bumpdigests.py
index fe63410d6..151a9fa3a 100644
--- a/Mailman/bin/bumpdigests.py
+++ b/Mailman/bin/bumpdigests.py
@@ -21,7 +21,8 @@ import optparse
from Mailman import Errors
from Mailman import MailList
from Mailman import Utils
-from Mailman import mm_cfg
+from Mailman import Version
+from Mailman.configuration import config
from Mailman.i18n import _
# Work around known problems with some RedHat cron daemons
@@ -33,13 +34,15 @@ __i18n_templates__ = True
def parseargs():
- parser = optparse.OptionParser(version=mm_cfg.MAILMAN_VERSION,
+ parser = optparse.OptionParser(version=Version.MAILMAN_VERSION,
usage=_("""\
%prog [options] [listname ...]
Increment the digest volume number and reset the digest number to one. All
the lists named on the command line are bumped. If no list names are given,
all lists are bumped."""))
+ parser.add_option('-C', '--config',
+ help=_('Alternative configuration file to use'))
opts, args = parser.parse_args()
return opts, args, parser
@@ -47,6 +50,7 @@ all lists are bumped."""))
def main():
opts, args, parser = parseargs()
+ config.load(opts.config)
listnames = set(args or Utils.list_names())
if not listnames: