Skip to content

Commit

Permalink
stubtest: add --version
Browse files Browse the repository at this point in the history
Suggested in python#12825
  • Loading branch information
hauntsaninja committed May 22, 2022
1 parent 19e9f21 commit 8a19ee5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mypy/stubtest.py
Expand Up @@ -23,6 +23,7 @@
import mypy.modulefinder
import mypy.state
import mypy.types
import mypy.version
from mypy import nodes
from mypy.config_parser import parse_config_file
from mypy.options import Options
Expand Down Expand Up @@ -1471,6 +1472,9 @@ def parse_options(args: List[str]) -> argparse.Namespace:
parser.add_argument(
"--check-typeshed", action="store_true", help="Check all stdlib modules in typeshed"
)
parser.add_argument(
"--version", action="version", version="%(prog)s " + mypy.version.__version__
)

return parser.parse_args(args)

Expand Down

0 comments on commit 8a19ee5

Please sign in to comment.