From 8dd549544601ad5ae8b00a048cefeaacd12d28b2 Mon Sep 17 00:00:00 2001 From: Thomas Lake Date: Sun, 25 Mar 2012 14:58:28 +0100 Subject: [PATCH] Add support for --quiet in genPOI.py --- genPOI.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/genPOI.py b/genPOI.py index 1caad76..66a8360 100755 --- a/genPOI.py +++ b/genPOI.py @@ -48,12 +48,16 @@ def main(): parser = OptionParser(usage=helptext) parser.add_option("--config", dest="config", action="store", help="Specify the config file to use.") + parser.add_option("--quiet", dest="quiet", action="count", help="Reduce logging output") options, args = parser.parse_args() if not options.config: parser.print_help() return + if options.quiet > 0: + logger.configure(logging.WARN, False) + # Parse the config file mw_parser = configParser.MultiWorldParser() mw_parser.parse(options.config)