summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/_pytest/helpconfig.py2
-rw-r--r--testing/test_helpconfig.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/_pytest/helpconfig.py b/src/_pytest/helpconfig.py
index 4384d07b2..b9360cecf 100644
--- a/src/_pytest/helpconfig.py
+++ b/src/_pytest/helpconfig.py
@@ -51,7 +51,7 @@ def pytest_addoption(parser: Parser) -> None:
action="count",
default=0,
dest="version",
- help="display pytest version and information about plugins."
+ help="display pytest version and information about plugins. "
"When given twice, also display information about plugins.",
)
group._addoption(
diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py
index 9a433b1b1..571a4783e 100644
--- a/testing/test_helpconfig.py
+++ b/testing/test_helpconfig.py
@@ -28,6 +28,9 @@ def test_help(pytester: Pytester) -> None:
For example: -m 'mark1 and not mark2'.
reporting:
--durations=N *
+ -V, --version display pytest version and information about plugins.
+ When given twice, also display information about
+ plugins.
*setup.cfg*
*minversion*
*to see*markers*pytest --markers*