diff --git a/mypy/main.py b/mypy/main.py index 40c5f39d2239..98dacceb7588 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -805,9 +805,10 @@ def add_invertible_flag(flag: str, title="Running code", description="Specify the code you want to type check. For more details, see " "mypy.readthedocs.io/en/stable/running_mypy.html#running-mypy") - code_group.add_argument( - '--explicit-package-bases', action='store_true', - help="Use current directory and MYPYPATH to determine module names of files passed") + add_invertible_flag( + '--explicit-package-bases', default=False, + help="Use current directory and MYPYPATH to determine module names of files passed", + group=code_group) code_group.add_argument( "--exclude", metavar="PATTERN",