Recognize `-V` as a short option for `--version` (#6721)

This commit is contained in:
Daniel Hahler 2020-02-13 12:30:22 +01:00 committed by GitHub
parent 07b7b6fa7d
commit dbae5a7ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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",