Closed williamjamir closed 4 years ago
Assuming your code is all in one module, instead of:
.. click:: my_project.cli:main
:prog: my-project
:show-nested:
:commands: template
Try:
.. click:: my_project.cli:template
:prog: my-project template
:show-nested:
If it's separate modules, just point to those, e.g.:
.. click:: my_project.template:main
:prog: my-project template
:show-nested:
If you were able to submit a patch to indicate this in the documentation, I'd appreciate it. It's obviously not as clear as it could be :smile:
I want to create an entry for each sub-command:
But the "problem" is that the docstring from the command
main
is written twice.Do you know some way to avoid this "duplication"? I mean how can I hide the sections
It's possible?