Skip to content

Commit

Permalink
Merge pull request #3 from honza-rychtar/master
Browse files Browse the repository at this point in the history
The new version of Opentiler.
  • Loading branch information
honza-rychtar committed Dec 19, 2011
2 parents b36bc71 + e81a61c commit 169add1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions opentiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,20 @@ def tile(filename, dialogbar, rootPath, exepath, zoomifyViewer, current, total):

def usage():
print """
usage
usage: python opentiler.py [OPTION]... [FILE]...
options:
-z, --zoomify use Zoomify Viewer instead of OpenLayers
-h, --help display this help and exit
-o, --output <STRING> path to the output directory
"""

def main():
import getopt

try:
opts, args = getopt.getopt(sys.argv[1:], 'hzo:', ['output=', 'help'])
opts, args = getopt.getopt(sys.argv[1:], 'hzo:', ['output=', 'help', 'zoomify'])

except getopt.error, msg:
print str(msg)
Expand All @@ -360,7 +366,7 @@ def main():
if option in ('--help', '-h'):
usage()
sys.exit()
if option in ('-z'):
if option in ('--zoomify', '-z'):
zoomifyViewer = True
elif option in ('--output', '-o'):
outputPath = arg
Expand Down

0 comments on commit 169add1

Please sign in to comment.