fix incorrectly required arg
This commit is contained in:
parent
21eb6729cc
commit
ecd70f4cf2
|
@ -75,7 +75,7 @@ def main(args):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--api', required=True, default='http://localhost:5665', help='Base Icinga2 API.')
|
parser.add_argument('--api', default='http://localhost:5665', help='Base Icinga2 API.')
|
||||||
parser.add_argument('--insecure', action='store_true', help='Disable SSL verification.')
|
parser.add_argument('--insecure', action='store_true', help='Disable SSL verification.')
|
||||||
parser.add_argument('--username', default='icingaweb2', help='API username.')
|
parser.add_argument('--username', default='icingaweb2', help='API username.')
|
||||||
parser.add_argument('--password', required=True, help='API password.')
|
parser.add_argument('--password', required=True, help='API password.')
|
||||||
|
|
Loading…
Reference in New Issue