Skip to content

Commit d07c7da

Browse files
use raw choices. needs further tweaks
1 parent dce8e1c commit d07c7da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ def add_invertible_flag(
570570
general_group.add_argument(
571571
"-O",
572572
"--output",
573-
metavar="FORMAT",
574573
help="Set a custom output format",
575574
choices=OUTPUT_CHOICES,
576575
)
@@ -1108,7 +1107,7 @@ def add_invertible_flag(
11081107
parser.add_argument(
11091108
"--enable-incomplete-feature",
11101109
action="append",
1111-
metavar="{" + ",".join(sorted(INCOMPLETE_FEATURES)) + "}",
1110+
choices=sorted(INCOMPLETE_FEATURES),
11121111
help="Enable support of incomplete/experimental features for early preview",
11131112
)
11141113
internals_group.add_argument(

0 commit comments

Comments
 (0)