Compare commits
2 Commits
5bbb06cdba
...
a459b3cdbe
Author | SHA1 | Date | |
---|---|---|---|
a459b3cdbe | |||
ca5c29b57c |
@ -114,7 +114,7 @@ class Icinga2ConfAction(argparse.Action):
|
|||||||
print(f' command = [ PluginContribDir + "/{command_path}" ]')
|
print(f' command = [ PluginContribDir + "/{command_path}" ]')
|
||||||
print(" arguments = {")
|
print(" arguments = {")
|
||||||
for action in parser._actions:
|
for action in parser._actions:
|
||||||
if action.dest in ["verbose", "help", self.dest]:
|
if action.dest in [self.dest, "help", "version"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
arg_str = action.option_strings[-1]
|
arg_str = action.option_strings[-1]
|
||||||
@ -166,14 +166,14 @@ def main():
|
|||||||
"--warning",
|
"--warning",
|
||||||
metavar="RANGE",
|
metavar="RANGE",
|
||||||
required=True,
|
required=True,
|
||||||
help="return warning if battery percentage is outside RANGE",
|
help="return warning if value is outside %(metavar)s",
|
||||||
)
|
)
|
||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"-c",
|
"-c",
|
||||||
"--critical",
|
"--critical",
|
||||||
metavar="RANGE",
|
metavar="RANGE",
|
||||||
required=True,
|
required=True,
|
||||||
help="return critical if battery percentage is outside RANGE",
|
help="return critical if value is outside %(metavar)s",
|
||||||
)
|
)
|
||||||
argp.add_argument(
|
argp.add_argument(
|
||||||
"--min",
|
"--min",
|
||||||
|
Loading…
Reference in New Issue
Block a user