From ff086ddd078c81369439005b766865338f5a60a1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 23 Apr 2022 17:30:52 +0300 Subject: [PATCH] Document the --code-highlight default --- src/_pytest/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index b4848c48a..e09686f60 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -214,7 +214,8 @@ def pytest_addoption(parser: Parser) -> None: "--code-highlight", default="yes", choices=["yes", "no"], - help="Whether code should be highlighted (only if --color is also enabled)", + help="Whether code should be highlighted (only if --color is also enabled). " + "Default: yes", ) parser.addini(