Recognize `-V` as a short option for `--version` (#6721)
This commit is contained in:
parent
07b7b6fa7d
commit
dbae5a7ff8
|
@ -40,8 +40,9 @@ def pytest_addoption(parser):
|
|||
group = parser.getgroup("debugconfig")
|
||||
group.addoption(
|
||||
"--version",
|
||||
"-V",
|
||||
action="store_true",
|
||||
help="display pytest lib version and import information.",
|
||||
help="display pytest version and information about plugins.",
|
||||
)
|
||||
group._addoption(
|
||||
"-h",
|
||||
|
|
Loading…
Reference in New Issue