|
I have realised that help rendering using derive mode is… not user friendly.
What I wanted was like: |
Answered by
pacak
Mar 2, 2026
Replies: 1 comment 6 replies
|
Something like that might do the trick: /// This foo program does this.
/// Sometimes also that.
#[derive(Debug, Clone, Bpaf)]
#[bpaf(options)]
struct Options {
...Each section is transformed according to those rules: https://docs.rs/bpaf/0.9.23/bpaf/params/struct.NamedArg.html#method.help |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To insert a blank line you need to add a line that contains a single space. Might be tricky if your editor is set to trim them, but you can use
#[doc = " "].So I typed this to one of the examples
And got this as output: