0

Add support for --quiet in genPOI.py

This commit is contained in:
Thomas Lake
2012-03-25 14:58:28 +01:00
committed by Andrew Chin
parent c287247b86
commit 8dd5495446

View File

@@ -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)