Skip to content

Commit 55474f5

Browse files
authored
Merge pull request #1417 from starsep/colorful_help
Enable colors for typos --help
2 parents 308f8f5 + 78b9375 commit 55474f5

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

Cargo.lock

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/typos-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typos-vars = { version = "^0.10", path = "../typos-vars", optional = true }
4848
unicase = "2.8.1"
4949
anyhow = "1.0"
5050
clap = { version = "4.5.48", features = ["derive"] }
51+
clap-cargo = "0.18.3"
5152
clap-verbosity-flag = "3.0"
5253
ignore = "0.4"
5354
serde = { version = "1.0", features = ["derive"] }

crates/typos-cli/src/bin/typos-cli/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ impl Format {
2929
#[command(rename_all = "kebab-case")]
3030
#[command(about, author, version)]
3131
#[command(group = clap::ArgGroup::new("mode").multiple(false))]
32+
#[command(styles = clap_cargo::style::CLAP_STYLING)]
3233
pub(crate) struct Args {
3334
/// Paths to check (`-` to check stdin)
3435
#[arg(default_value = ".", group = "source")]

0 commit comments

Comments
 (0)