Skip to content

Commit 87d4d5a

Browse files
authored
Add colors to --help (#1633)
1 parent 518784a commit 87d4d5a

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

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
@@ -39,6 +39,7 @@ anyhow.workspace = true
3939
askalono = "0.5.0"
4040
byte-unit = "5.1.6"
4141
clap.workspace = true
42+
clap-cargo = "0.15.2"
4243
clap_complete = "4.5.55"
4344
crossbeam-channel = "0.5.15"
4445
gix = { version = "0.73.0", default-features = false, features = [

src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub const NO_BOTS_DEFAULT_REGEX_PATTERN: &str = r"(?:-|\s)[Bb]ot$|\[[Bb]ot\]";
2222

2323
#[derive(Clone, Debug, Parser, PartialEq, Eq)]
2424
#[command(version, about)]
25+
#[command(styles = clap_cargo::style::CLAP_STYLING)]
2526
pub struct CliOptions {
2627
/// Run as if onefetch was started in <input> instead of the current working directory
2728
#[arg(default_value = ".", hide_default_value = true, value_hint = ValueHint::DirPath)]

0 commit comments

Comments
 (0)