Closed kratsg closed 2 years ago
Hello! @stephenfin I would love if the sphix generated docs ignored the truncation! it allows you to write nice rst formatted comments inside the cli docstrings, while keeping the command line --help clean. Any progress here?
@jgallowa07 Not on my end. Happy to work with someone on PR for this but this isn't high priority for me, unfortunately
If anyone does work on this, note that click
truncates the provided help string and doesn't seem to record the original version anywhere, as seen here. I don't think this feature will be easily achieved without changes to click
itself (to record the raw help string)
This is now fixed by using click>=8.1.0
, no changes needed for sphinx-click
.
@stephenfin This is so amazing! Thank you!
Click has the following option: https://click.palletsprojects.com/en/7.x/documentation/?highlight=docstring#truncating-help-texts
with the CLI output
however, it turns out that the sphinx-click contrib will also show the same help output, instead of using the full docstring. It's clear that this was geared towards being used with sphinx.