help_heading
and clap_derive
#1954
-
Is there any way to combine these two? It's probably the only blocker to OpenEthereum migrating from custom macros to Clap v3. |
Beta Was this translation helpful? Give feedback.
Answered by
CreepySkeleton
May 31, 2020
Replies: 2 comments 5 replies
-
You can specify it for an arg field like this: #[derive(Clap)]
struct B {
#[clap(long, help_heading = "a")]
time: bool
} |
Beta Was this translation helpful? Give feedback.
5 replies
-
This is a bug in clap itself, not derive: use clap::{App, Arg};
fn main() {
App::new("app")
.arg(Arg::from("--time").help_heading(Some("a")))
.get_matches_from(&["test", "--help"]);
}
I took liberty to report it as #1955 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pksunkara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bug in clap itself, not derive:
I took liberty to report it as #1955