diff --git a/mypy/main.py b/mypy/main.py index b543cd33fe44..7726ba9bfd61 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -1063,6 +1063,12 @@ def add_invertible_flag( action="store_true", help="Include fine-grained dependency information in the cache for the mypy daemon", ) + if server_options: + incremental_group.add_argument( + "--use-fine-grained-cache", + action="store_true", + help="Use the cache in fine-grained incremental mode (this flag only available for dmypy)", + ) incremental_group.add_argument( "--fixed-format-cache", action="store_true", @@ -1203,13 +1209,6 @@ def add_invertible_flag( inverse="--interactive", ) - if server_options: - misc_group.add_argument( - "--use-fine-grained-cache", - action="store_true", - help="Use the cache in fine-grained incremental mode", - ) - # hidden options parser.add_argument( "--stats", action="store_true", dest="dump_type_stats", help=argparse.SUPPRESS