Skip to content

Commit cea42ff

Browse files
committed
Docs: modules implementing pytest_cmdline_parse can be early-loaded
Related to #4974
1 parent b3319a6 commit cea42ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/hookspec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def pytest_cmdline_parse(pluginmanager, args):
9999
Stops at first non-None result, see :ref:`firstresult`
100100
101101
.. note::
102-
This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
102+
This hook will not be called for ``conftest.py`` files, only for setuptools plugins or
103+
modules which implement this hook and are early-loaded with the ``-p`` flag.
103104
104105
:param _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager
105106
:param list[str] args: list of arguments passed on the command line

0 commit comments

Comments
 (0)