We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--version
1 parent 3da16bd commit f0c394aCopy full SHA for f0c394a
mypy/stubgen.py
@@ -54,6 +54,7 @@
54
import mypy.parse
55
import mypy.traverser
56
import mypy.util
57
+import mypy.version
58
from mypy.build import build
59
from mypy.errors import CompileError, Errors
60
from mypy.find_sources import InvalidSourceList, create_source_list
@@ -1847,6 +1848,9 @@ def parse_options(args: list[str]) -> Options:
1847
1848
dest="files",
1849
help="generate stubs for given files or directories",
1850
)
1851
+ parser.add_argument(
1852
+ "--version", action="version", version="%(prog)s " + mypy.version.__version__
1853
+ )
1854
1855
ns = parser.parse_args(args)
1856
0 commit comments