Make help a bit clearer
This commit is contained in:
parent
035d20cfc3
commit
645bc06a8e
@ -137,6 +137,10 @@ class Icinga2ConfAction(argparse.Action):
|
|||||||
@nagiosplugin.guarded
|
@nagiosplugin.guarded
|
||||||
def main():
|
def main():
|
||||||
argp = argparse.ArgumentParser(description=__doc__)
|
argp = argparse.ArgumentParser(description=__doc__)
|
||||||
|
|
||||||
|
argp.add_argument("-v", "--verbose", action="count", default=0)
|
||||||
|
argp.add_argument("--make-icinga-conf", action=Icinga2ConfAction)
|
||||||
|
|
||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"-t",
|
"-t",
|
||||||
"--token",
|
"--token",
|
||||||
@ -147,8 +151,6 @@ def main():
|
|||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"-u", "--url", required=True, type=str, help="URL for Home Assistant"
|
"-u", "--url", required=True, type=str, help="URL for Home Assistant"
|
||||||
)
|
)
|
||||||
argp.add_argument("-v", "--verbose", action="count", default=0)
|
|
||||||
argp.add_argument("--make-icinga-conf", action=Icinga2ConfAction)
|
|
||||||
|
|
||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"-d",
|
"-d",
|
||||||
@ -190,7 +192,7 @@ def main():
|
|||||||
type=key_value,
|
type=key_value,
|
||||||
default=[],
|
default=[],
|
||||||
nargs="*",
|
nargs="*",
|
||||||
help="filter by 'attribute=value'",
|
help="filter by 'attribute=value' (may be specified multiple times)",
|
||||||
)
|
)
|
||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"--friendly",
|
"--friendly",
|
||||||
|
Loading…
Reference in New Issue
Block a user