Skip to content

Commit cd1493b

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

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

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)