Skip to content

Commit 0573a2f

Browse files
Move fine-grained-cache out of misc into incremental group
1 parent dce8e1c commit 0573a2f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

mypy/main.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,12 @@ def add_invertible_flag(
10631063
action="store_true",
10641064
help="Include fine-grained dependency information in the cache for the mypy daemon",
10651065
)
1066+
if server_options:
1067+
incremental_group.add_argument(
1068+
"--use-fine-grained-cache",
1069+
action="store_true",
1070+
help="Use the cache in fine-grained incremental mode (this flag only available for dmypy)",
1071+
)
10661072
incremental_group.add_argument(
10671073
"--fixed-format-cache",
10681074
action="store_true",
@@ -1203,13 +1209,6 @@ def add_invertible_flag(
12031209
inverse="--interactive",
12041210
)
12051211

1206-
if server_options:
1207-
misc_group.add_argument(
1208-
"--use-fine-grained-cache",
1209-
action="store_true",
1210-
help="Use the cache in fine-grained incremental mode",
1211-
)
1212-
12131212
# hidden options
12141213
parser.add_argument(
12151214
"--stats", action="store_true", dest="dump_type_stats", help=argparse.SUPPRESS

0 commit comments

Comments
 (0)