-
struct {
#[arg(short, long, ...)]
a: String,
extra_f1: String, // <- like this field
} Hi. I want to make a struct like the above. Is it possible? or that just raises error? |
Beta Was this translation helpful? Give feedback.
Answered by
epage
Apr 19, 2024
Replies: 1 comment 1 reply
-
You can use the https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Crispy13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
skip
attribute but it requires a valuehttps://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes