We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1e460 commit 2a8a8e2Copy full SHA for 2a8a8e2
mypy/main.py
@@ -573,7 +573,8 @@ def add_invertible_flag(
573
"-O",
574
"--output",
575
metavar="FORMAT",
576
- help="Set a custom output format",
+ # 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())})",
578
choices=OUTPUT_CHOICES,
579
)
580
0 commit comments