| Crates.io | clap-color-flag |
| lib.rs | clap-color-flag |
| version | 1.0.0 |
| created_at | 2023-04-16 09:24:43.26963+00 |
| updated_at | 2023-04-16 09:24:43.26963+00 |
| description | Easily add a `--color` flag to CLIs using Clap |
| homepage | |
| repository | https://github.com/clap-rs/clap-color-flag |
| max_upload_size | |
| id | 840450 |
| size | 30,589 |
Easily add a --color flag to CLIs using Clap
use clap::Parser;
// ...
#[derive(Debug, Parser)]
struct Cli {
#[command(flatten)]
color: clap_color_flag::Color,
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.