diff options
| author | msapiro | 2006-10-24 03:55:24 +0000 |
|---|---|---|
| committer | msapiro | 2006-10-24 03:55:24 +0000 |
| commit | 3256c431e7bf966d3de49e4dc31dd01d57ffb02f (patch) | |
| tree | e0f32257c2bc73eec34e4ebf2f50c27b0ff23a66 /Mailman/bin/show_qfiles.py | |
| parent | f0a263b63991efc787bfd870bd7a491c53dce54a (diff) | |
| download | mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.gz mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.zst mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.zip | |
Diffstat (limited to 'Mailman/bin/show_qfiles.py')
| -rw-r--r-- | Mailman/bin/show_qfiles.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/bin/show_qfiles.py b/Mailman/bin/show_qfiles.py index f49190b1d..449b265b4 100644 --- a/Mailman/bin/show_qfiles.py +++ b/Mailman/bin/show_qfiles.py @@ -19,7 +19,8 @@ import sys import optparse from cPickle import load -from Mailman import mm_cfg +from Mailman import Version +from Mailman.configuration import config from Mailman.i18n import _ __i18_templates__ = True @@ -27,7 +28,7 @@ __i18_templates__ = True def parseargs(): - parser = optparse.OptionParser(version=mm_cfg.MAILMAN_VERSION, + parser = optparse.OptionParser(version=Version.MAILMAN_VERSION, usage=_("""\ %%prog [options] qfiles ... @@ -35,6 +36,8 @@ Show the contents of one or more Mailman queue files.""")) parser.add_option('-q', '--quiet', default=False, action='store_true', help=_("Don't print 'helpful' message delimiters.")) + parser.add_option('-C', '--config', + help=_('Alternative configuration file to use')) opts, args = parser.parse_args() return parser, opts, args @@ -42,6 +45,7 @@ Show the contents of one or more Mailman queue files.""")) def main(): parser, opts, args = parseargs() + config.load(opts.config) for filename in args: if not opts.quiet: |
