mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
This makes it easier to copy this example for use in the derive API, like so: ```rust const STYLES: Styles = Styles::styled() .header(AnsiColor::Green.on_default().bold()) .usage(AnsiColor::Green.on_default().bold()) .literal(AnsiColor::Blue.on_default().bold()) .placeholder(AnsiColor::Cyan.on_default()); #[derive(Parser)] #[clap(styles = STYLES)] struct Cmd { ... } ``` If you use the `|` method then it's not a constant function. |
||
---|---|---|
.. | ||
builder | ||
error | ||
output | ||
parser | ||
util | ||
derive.rs | ||
lib.rs | ||
macros.rs | ||
mkeymap.rs |