(config: Config)
| 164 | |
| 165 | |
| 166 | def pytest_cmdline_main(config: Config) -> int | ExitCode | None: |
| 167 | # Note: a single `--version` argument is handled directly by `Config.main()` to avoid starting up the entire |
| 168 | # pytest infrastructure just to display the version (#13574). |
| 169 | if config.option.version > 1: |
| 170 | show_version_verbose(config) |
| 171 | return ExitCode.OK |
| 172 | elif config.option.help: |
| 173 | config._do_configure() |
| 174 | showhelp(config) |
| 175 | config._ensure_unconfigure() |
| 176 | return ExitCode.OK |
| 177 | return None |
| 178 | |
| 179 | |
| 180 | def showhelp(config: Config) -> None: |
nothing calls this directly
no test coverage detected