Add version argument
This commit is contained in:
parent
b2524c8799
commit
a1b8025c7e
@ -147,6 +147,7 @@ class Icinga2ConfAction(argparse.Action):
|
|||||||
def main():
|
def main():
|
||||||
argp = argparse.ArgumentParser(description=__doc__)
|
argp = argparse.ArgumentParser(description=__doc__)
|
||||||
|
|
||||||
|
argp.add_argument("--version", action="version", version="0.1.0")
|
||||||
argp.add_argument("-v", "--verbose", action="count", default=0)
|
argp.add_argument("-v", "--verbose", action="count", default=0)
|
||||||
argp.add_argument("--make-icinga-conf", action=Icinga2ConfAction)
|
argp.add_argument("--make-icinga-conf", action=Icinga2ConfAction)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user