Replies: 3 comments 1 reply
-
We have a similar problem: We were documenting a caveat with a value enum in the doc comment of its variant (astral-sh/uv@5d37c7e/crates/uv-install-wheel/src/linker.rs#L18-L36). We now realized that the only the first line of the doc comment is captured (astral-sh/uv#15115), and the rest does not get preserved. Is that intentional, or could we add long help and capture that too? |
Beta Was this translation helpful? Give feedback.
-
At this time, there is only one form of
So the question is whether we should be pulling the synopsis or full doc comment. This was implemented in #2762 to fix #2731. A quick look over #2731 and #2762 and I'm not finding this explicitly discussed why we made the decision we did. @ModProg do you remember? Potential guesses
If we changed this, it would likely be a breaking change and wait until 5.0.0 (or be put behind |
Beta Was this translation helpful? Give feedback.
-
I went ahead and converted this Discussion into an Issue (#6096) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a ValueEnum with variants that have detailed help (that is, more than one paragraph of doc comments). How can I get clap to show this when
--help
is invoked?Example using clap 4.5.1:
Output from
--help
:I'd like some way of exposing the full docstring of
Foo
andBar
in themyopt
help string.Beta Was this translation helpful? Give feedback.
All reactions