Cleanup
parent
24b7f97887
commit
c164d0d144
|
@ -328,9 +328,8 @@ if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(sys.argv[1:], "h,b:,v,s",
|
opts, args = getopt.getopt(sys.argv[1:], "h,b:,v,s",
|
||||||
["help", "baud", "verbose", "statusreport"])
|
["help", "baud", "verbose", "statusreport"])
|
||||||
except getopt.GetoptError,err:
|
except getopt.GetoptError, err:
|
||||||
print str(err)
|
print str(err)
|
||||||
print help
|
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
for o, a in opts:
|
for o, a in opts:
|
||||||
if o in ('-h', '--help'):
|
if o in ('-h', '--help'):
|
||||||
|
|
Loading…
Reference in New Issue