Skip to content

Commit 230f554

Browse files
committed
Add colors to --help
1 parent 43e3b10 commit 230f554

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 13 additions & 2 deletions
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
@@ -22,6 +22,7 @@ toml = "0.9"
2222
dirs = "6"
2323
chrono = "0.4.42"
2424
indexmap = "2.12.0"
25+
clap-cargo = "0.18.3"
2526

2627
[dependencies.clap]
2728
version = "4"

src/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn app() -> Command {
1616
.version(crate_version!())
1717
.author("Brocode inc <bros@brocode.sh>")
1818
.about("json log viewer")
19+
.styles(clap_cargo::style::CLAP_STYLING)
1920
.arg(
2021
Arg::new("additional-value")
2122
.long("additional-value")

0 commit comments

Comments
 (0)