mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 09:17:43 +02:00
parent
4bfd6f9e23
commit
0ec5efafb5
@ -27,7 +27,8 @@ def main():
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "h", ["help", "color"])
|
||||
except getopt.GetoptError as err:
|
||||
except getopt.GetoptError:
|
||||
t, err = sys.exc_info()[:2]
|
||||
# print help information and exit:
|
||||
print str(err) # will print something like "option -a not recognized"
|
||||
usage()
|
||||
|
Loading…
x
Reference in New Issue
Block a user