GeezerVison is showing github.com — Missing docs for CLI usage · Issue #4492 · pytest-dev/pytest
Missing docs for CLI usage #4492Labels type: docsdocumentation improvement, missing or needing clarification DescriptionIt looks like I can only access the CLI usage such as options and argument via pytest --help. It will be nice to add this part to docs, so users can read it as a reference online without invoking pytest.
- Include a detailed description of the bug or suggestion
-
pip list of the virtual environment you are using
- pytest and operating system versions
- Minimal example if possible
ActivityZac-HD commented on Dec 5, 2018 jxltom commented on Dec 5, 2018 It will be nice to add a full pytest CLI reference, which is a online version of pytest --help
It can be generated simply by https://github.com/click-contrib/sphinx-click.
I can try to made a PR for that, if this is reasonable. RonnyPfannschmidt commented on Dec 5, 2018 @jxltom pytest does not use click however jxltom commented on Dec 5, 2018 blueyed commented on Mar 1, 2020 @jxltom any luck with that?
I guess it is difficult given how pytest generates the parser etc.
I guess the best would be to just have the output from --help verbatim, no? Or do you expect it to be clickable / linked to more docs?
(with regard to that I think the help should be verbose enough to not require additional docs, especially since there is no man page)
I've played a bit with https://github.com/invenia/sphinxcontrib-runcmd (and extended it already), which would allow to get pytest --helps output into a separate page, which could be linked to then. added 3 commits that reference this issue on Nov 11, 2025This issue will close once commit 1f60a93 is merged into the 'main' branch.1f60a93 This issue will close once commit aeb1584 is merged into the 'main' branch.aeb1584 This issue will close once commit aa7d54b is merged into the 'main' branch.aa7d54b added a commit that references this issue on Nov 25, 2025This issue will close once commit e9afd04 is merged into the 'main' branch.e9afd04
MetadataMetadatatype: docsdocumentation improvement, missing or needing clarification DevelopmentNo branches or pull requestsIssue actions
|