Visitar URL original
Missing docs for CLI usage · Issue #4492 · pytest-dev/pytest · GitHub
Skip to content

Missing docs for CLI usage #4492

Description

@jxltom

It 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

Activity

  1. added
    type: questiongeneral question, might be closed after 2 weeks of inactivity
    type: docsdocumentation improvement, missing or needing clarification
    on Dec 5, 2018
  2. Zac-HD commented on Dec 5, 2018

    @Zac-HD
    Member

    What specifically do you want added to the usage page?

  3. jxltom commented on Dec 5, 2018

    @jxltom
    Author

    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.

  4. removed
    type: questiongeneral question, might be closed after 2 weeks of inactivity
    on Dec 5, 2018
  5. RonnyPfannschmidt commented on Dec 5, 2018

    @RonnyPfannschmidt
    Member

    @jxltom pytest does not use click however

  6. jxltom commented on Dec 5, 2018

    @jxltom
    Author

    Oh, thanks for the kind reminder.

    It looks like pytest using argparse? There is also a https://sphinx-argparse.readthedocs.io/en/stable/ for that. But I have never used that before. Let's give it a try...

  7. blueyed commented on Mar 1, 2020

    @blueyed
    Contributor

    @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.

  8. added 3 commits that reference this issue on Nov 11, 2025
    1f60a93
    aeb1584
    aa7d54b
  9. added a commit that references this issue on Nov 25, 2025
    e9afd04
  10. added a commit that references this issue on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions