Beremiz_service.py
branchpy3-fix
changeset 2303 03ea6837a0b4
parent 2294 da288f63612f
child 2305 56f1d8aca886
child 2427 9554952d36d7
equal deleted inserted replaced
2302:69fefac5760e 2303:03ea6837a0b4
    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