-
Note: i am still kinda new to rust, so i dont know the actual name what I am currently looking for documentation for for context, i mean #[derive(Parser)]
#[clap(author, version, about, long_about = None)] // this
struct Cli {
#[clap(short, long)] // this
verbose: bool,
} PS: the most likely case where this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We refer to this as a "Derive API" (as compared to using the builder pattern in our Builder API). From our API docs and repo README we link out to a derive tutorial and reference documentation. Didn't expect people to go through |
Beta Was this translation helpful? Give feedback.
We refer to this as a "Derive API" (as compared to using the builder pattern in our Builder API). From our API docs and repo README we link out to a derive tutorial and reference documentation.
Didn't expect people to go through
clap_derive
to find it since its pretty much an internal crate. I'll update that to link to these two documents.