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