From dbae5a7ff88138e78fc245e95a6fe03536fe7512 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 13 Feb 2020 12:30:22 +0100 Subject: [PATCH] Recognize `-V` as a short option for `--version` (#6721) --- src/_pytest/helpconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/helpconfig.py b/src/_pytest/helpconfig.py index 87cd2c0a7..ae37fdea4 100644 --- a/src/_pytest/helpconfig.py +++ b/src/_pytest/helpconfig.py @@ -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",