clap/clap_builder/src
Gibson Fahnestock 6f215eee98
refactor(styles): make styles example use a const
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.
2024-08-08 15:04:32 +01:00
..
builder refactor(styles): make styles example use a const 2024-08-08 15:04:32 +01:00
error feat: Show user defined help flags in hints 2024-07-08 19:01:22 -05:00
output fix(help): Properly wrap subcommand about 2024-07-31 16:17:40 -05:00
parser chore: fix some comments 2024-06-20 11:40:13 +08:00
util docs: Remove stale ColorChoice platform notes 2024-07-20 12:14:22 -05:00
derive.rs chore: Update from template 2024-05-14 12:27:02 -05:00
lib.rs chore: Update from template 2024-05-14 12:27:02 -05:00
macros.rs fix: Use SCREAMING_SNAKE_CASE for static variable authors 2024-03-05 23:52:48 -05:00
mkeymap.rs chore: Update from template 2024-05-14 12:27:02 -05:00