Skip to content

Commit

Permalink
Remove argparse.BooleanOptionalAction for Python 3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdnbradford committed Apr 3, 2024
1 parent 4ddd798 commit 196208a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tljh/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="store_true", help="Validate the TLJH config"
)
argparser.add_argument(
"--validate",
action=argparse.BooleanOptionalAction,
help="Validate the TLJH config",
"--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")

Expand Down

0 comments on commit 196208a

Please sign in to comment.