Skip to content

Commit dbae5a7

Browse files
authored
Recognize -V as a short option for --version (pytest-dev#6721)
1 parent 07b7b6f commit dbae5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/helpconfig.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ def pytest_addoption(parser):
4040
group = parser.getgroup("debugconfig")
4141
group.addoption(
4242
"--version",
43+
"-V",
4344
action="store_true",
44-
help="display pytest lib version and import information.",
45+
help="display pytest version and information about plugins.",
4546
)
4647
group._addoption(
4748
"-h",

0 commit comments

Comments
 (0)