fix incorrectly required arg

This commit is contained in:
Cyberes 2024-02-25 21:02:59 -07:00
parent 21eb6729cc
commit ecd70f4cf2
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def main(args):
if __name__ == "__main__":
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('--username', default='icingaweb2', help='API username.')
parser.add_argument('--password', required=True, help='API password.')