Skip to content

Commit 6f3556b

Browse files
authored
Add colors to --help (#1296)
1 parent 179155f commit 6f3556b

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 25 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ regex = "1.10.6"
6565
serde_json = "1.0.125"
6666
etcetera = "0.8.0"
6767
table_formatter = "0.6.1"
68+
clap-cargo = "0.13.0"
6869

6970
[dependencies.env_logger]
7071
optional = true

src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ impl Cli {
5959
let matches = clap::Command::new("tokei")
6060
.version(crate_version())
6161
.author("Erin P. <[email protected]> + Contributors")
62+
.styles(clap_cargo::style::CLAP_STYLING)
6263
.about(concat!(
6364
crate_description!(),
6465
"\n",

0 commit comments

Comments
 (0)