summaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorWenxuan Zhang <wenxuangm@gmail.com>2021-03-19 10:44:49 +0800
committerWenxuan Zhang <wenxuangm@gmail.com>2021-03-19 10:44:49 +0800
commit78f7449a1bda7ee76b20c479584435648d50280a (patch)
tree29d1aadddca1bd32acd7c3d655ab6a5cfccb3c17 /src/cli
parent3807e256cec399a945bc26a759ba570208e6ade8 (diff)
add colored help support
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/clap_args.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli/clap_args.rs b/src/cli/clap_args.rs
index 765a8bf..17874d5 100644
--- a/src/cli/clap_args.rs
+++ b/src/cli/clap_args.rs
@@ -10,6 +10,7 @@ pub fn clap_app() -> clap::App<'static, 'static> {
"A tree explorer and a customizable launcher\n\
Complete documentation lives at https://dystroy.org/broot"
)
+ .setting(clap::AppSettings::ColoredHelp)
.arg(clap::Arg::with_name("ROOT").help("sets the root directory"))
// tree flags
.arg(