Skip to content

Commit 2a8a8e2

Browse files
The metavar overrides the default of displaying the choices, so we have to explicitly display them.
1 parent 4f1e460 commit 2a8a8e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,8 @@ def add_invertible_flag(
573573
"-O",
574574
"--output",
575575
metavar="FORMAT",
576-
help="Set a custom output format",
576+
# The metavar overrides the default of displaying the choices, so we have to explicitly display them.
577+
help=f"Set a custom output format (choices: {set(OUTPUT_CHOICES.keys())})",
577578
choices=OUTPUT_CHOICES,
578579
)
579580

0 commit comments

Comments
 (0)