From 44042c3d75d056a4b763d9730cdd2bfa150f462c Mon Sep 17 00:00:00 2001 From: Thomas Lake Date: Sun, 15 Apr 2012 14:23:48 +0100 Subject: [PATCH] Update usage information for genPOI Usage text update to include --quiet and reflect whether script is called independently or via the --genpoi flag for overviewer.py --- genPOI.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/genPOI.py b/genPOI.py index 66a8360..274f9e6 100755 --- a/genPOI.py +++ b/genPOI.py @@ -17,6 +17,7 @@ markers.js holds a list of which markerSets are attached to each tileSet import os import logging import json +import sys from optparse import OptionParser from overviewer_core import logger @@ -41,8 +42,13 @@ def handleSigns(rset, outputdir, render, rname): def main(): - helptext = """genPOI - %prog --config=""" + + if os.path.basename(sys.argv[0]) == """genPOI.py""": + helptext = """genPOI.py + %prog --config= [--quiet]""" + else: + helptext = """genPOI + %prog --genpoi --config= [--quiet]""" logger.configure()