Skip to content

Exposing more than just sphinx-build to python -m sphinx #11656

@jamesbraza

Description

@jamesbraza

Is your feature request related to a problem? Please describe.

Running python -m sphinx --help, I see it's an alias for sphinx-build.

It would be cool if this was an entrypoint to other commands, like sphinx-apidoc.

Describe the solution you'd like

A more generalized console entrypoint that supports other commands:

python -m sphinx --help
# Tells about build, apidoc, etc.
python -m sphinx build ...
python -m sphinx apidoc ...

Describe alternatives you've considered

A workaround is directly invoking the relevant modules as listed here:

python -m sphinx.cmd.build ...
python -m sphinx.ext.apidoc ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions