Skip to content

Commit a6bc62f

Browse files
committed
Enable color and suggest_on_error for argparse
1 parent 0e83b79 commit a6bc62f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,8 @@ def parse_args() -> argparse.Namespace:
967967
description="Runs a build of the Python docs for various branches.",
968968
allow_abbrev=False,
969969
)
970+
parser.color = True
971+
parser.suggest_on_error = True
970972
parser.add_argument(
971973
"--select-output",
972974
choices=("no-html", "only-html", "only-html-en"),

0 commit comments

Comments
 (0)