MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_cmdline_main

Function pytest_cmdline_main

src/_pytest/helpconfig.py:146–155  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

144
145
146def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]:
147 if config.option.version > 0:
148 showversion(config)
149 return 0
150 elif config.option.help:
151 config._do_configure()
152 showhelp(config)
153 config._ensure_unconfigure()
154 return 0
155 return None
156
157
158def showhelp(config: Config) -> None:

Callers

nothing calls this directly

Calls 4

showversionFunction · 0.85
showhelpFunction · 0.85
_do_configureMethod · 0.80
_ensure_unconfigureMethod · 0.80

Tested by

no test coverage detected