Allow verbose, don't allow version in icinga2 conf

This commit is contained in:
Adam Goldsmith 2022-11-30 15:33:21 -05:00
parent ca5c29b57c
commit a459b3cdbe

View File

@ -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]