Skip to content

Perform help formatting/rendering for arg.help(...), just like doc comments in clap-derive #6075

Answered by epage
stevenengler asked this question in Q&A
Discussion options

You must be logged in to vote

This is derive specific logic for transforming a markdown doc comment to arg.help and arg.long_help. We have issues about how incomplete the markdown support is. I see it unlikely to try to integrate all of that into the builder API though we might offer a parallel API for it. We'll have to see how that logic evolves and is unlikely to be a goal on its own.

You can manually specify #[arg(help)] and #[arg(long_help)] though it requires duplicating the first section. On the other hand, it lets you customize things for each specific scenario.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevenengler
Comment options

Answer selected by stevenengler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants