equal
deleted
inserted
replaced
67 """ % sys.argv[0]) |
67 """ % sys.argv[0]) |
68 |
68 |
69 |
69 |
70 try: |
70 try: |
71 opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h", ["help", "version"]) |
71 opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h", ["help", "version"]) |
72 except getopt.GetoptError, err: |
72 except getopt.GetoptError as err: |
73 # print help information and exit: |
73 # print help information and exit: |
74 print(str(err)) # will print something like "option -a not recognized" |
74 print(str(err)) # will print something like "option -a not recognized" |
75 usage() |
75 usage() |
76 sys.exit(2) |
76 sys.exit(2) |
77 |
77 |