dwtt/dwtt
2011-02-08 22:07:08 -05:00

37 lines
605 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
import getopt
from Window import *
PROGRAM_NAME = 'dwtt'
def usage():
print '''Usage: dwtt [options] [dbfile]
Options:
--help Show this help
'''
def main(argv):
try:
opts, args = getopt.getopt(argv[1:], "", ["help"])
except getopt.GetoptError:
usage()
sys.exit(1)
for opt, arg in opts:
if opt == "--help":
usage()
sys.exit()
else:
usage()
sys.exit(3)
w = Window()
w.main()
if __name__ == "__main__":
main(sys.argv)