mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Remove argparse.BooleanOptionalAction for Python 3.8 compatibility
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user