Remove argparse.BooleanOptionalAction for Python 3.8 compatibility

This commit is contained in:
Jordan Bradford
2024-04-03 13:30:32 -04:00
parent 4ddd798928
commit 196208ae58

View File

@@ -356,11 +356,17 @@ def main(argv=None):
argparser.add_argument(
"--config-path", default=CONFIG_FILE, help="Path to TLJH config.yaml file"
)
argparser.add_argument(
"--validate",
action=argparse.BooleanOptionalAction,
help="Validate the TLJH config",
"--validate", action="store_true", help="Validate the TLJH config"
)
argparser.add_argument(
"--no-validate",
dest="validate",
action="store_false",
help="Do not validate the TLJH config",
)
argparser.set_defaults(validate=True)
subparsers = argparser.add_subparsers(dest="action")