click-contrib / sphinx-click

A Sphinx plugin to automatically document click-based applications
MIT License
212 stars 57 forks source link

Document sub-command only #128

Open LecrisUT opened 9 months ago

LecrisUT commented 9 months ago

It would be nice to have a way to document only sub-commands. A short workaround is to use:

.. click:: commands.sub:sub
  :prog: cli sub

Where this point to the specific command instead of the group. The issue is that it does not easily show the parent's options.