mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
No description
6f215eee98
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. |
||
---|---|---|
.github | ||
assets | ||
clap_bench | ||
clap_builder | ||
clap_complete | ||
clap_complete_fig | ||
clap_complete_nushell | ||
clap_derive | ||
clap_lex | ||
clap_mangen | ||
examples | ||
src | ||
tests | ||
.clippy.toml | ||
.gitignore | ||
.pre-commit-config.yaml | ||
Cargo.lock | ||
Cargo.toml | ||
CHANGELOG.md | ||
CITATION.cff | ||
committed.toml | ||
CONTRIBUTING.md | ||
deny.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
Makefile | ||
README.md | ||
release.toml | ||
typos.toml |
clap
Command Line Argument Parser for Rust
Dual-licensed under Apache 2.0 or MIT.
About
Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.
For more details, see: