From 2523e3d7540749692a1eaa2588f8eb790580e152 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 13 Feb 2020 09:32:09 +0100 Subject: [PATCH] Recognize `-V` as a short option for `--version` --- 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 21155de2c2f..e3c61106c15 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",