From 4287fc5f0b0cea25f806c2ec7ef5be50e37cf424 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Thu, 30 Jun 2016 09:04:49 +0200 Subject: [PATCH] Add -q alias for --quiet to genPOI This brings it in line with the syntax of the main overviewer.py script. --- overviewer_core/aux_files/genPOI.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index f231ff4..c209368 100755 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -419,18 +419,22 @@ def main(): if os.path.basename(sys.argv[0]) == """genPOI.py""": helptext = """genPOI.py - %prog --config= [--quiet]""" + %prog --config= [options]""" else: helptext = """genPOI - %prog --genpoi --config= [--quiet]""" + %prog --genpoi --config= [options]""" logger.configure() parser = OptionParser(usage=helptext) - parser.add_option("-c", "--config", dest="config", action="store", help="Specify the config file to use.") - parser.add_option("--quiet", dest="quiet", action="count", help="Reduce logging output") - parser.add_option("--skip-scan", dest="skipscan", action="store_true", help="Skip scanning for entities when using GenPOI") - parser.add_option("--skip-players", dest="skipplayers", action="store_true", help="Skip getting player data when using GenPOI") + parser.add_option("-c", "--config", dest="config", action="store", + help="Specify the config file to use.") + parser.add_option("-q", "--quiet", dest="quiet", action="count", + help="Reduce logging output") + parser.add_option("--skip-scan", dest="skipscan", action="store_true", + help="Skip scanning for entities when using GenPOI") + parser.add_option("--skip-players", dest="skipplayers", action="store_true", + help="Skip getting player data when using GenPOI") options, args = parser.parse_args() if not options.config: