Skip to content

Commit dc089c1

Browse files
committed
Add colors to --help
1 parent 8661ac4 commit dc089c1

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Upcoming release
22

33
## Features
4-
4+
- Add colors to `--help`, see #1846 (@starsep)
55

66
## Bugfixes
77

Cargo.lock

Lines changed: 11 additions & 0 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
@@ -46,6 +46,7 @@ crossbeam-channel = "0.5.15"
4646
clap_complete = {version = "4.5.60", optional = true}
4747
faccess = "0.2.4"
4848
jiff = "0.2.14"
49+
clap-cargo = "0.18.3"
4950

5051
[dependencies.clap]
5152
version = "4.5.51"

src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use crate::filter::SizeFilter;
2828
args_override_self = true,
2929
group(ArgGroup::new("execs").args(&["exec", "exec_batch", "list_details"]).conflicts_with_all(&[
3030
"max_results", "quiet", "max_one_result"])),
31+
styles = clap_cargo::style::CLAP_STYLING,
3132
)]
3233
pub struct Opts {
3334
/// Include hidden directories and files in the search results (default:

0 commit comments

Comments
 (0)