From e8d6f2dbedf82ac6562e23688ff897eb27d7ed90 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 2 Dec 2024 13:13:29 -0800 Subject: [PATCH] Style help text (#2501) --- src/config.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 86ec4bfeb5..6a5897c996 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,10 @@ use { super::*, clap::{ - builder::{styling::AnsiColor, FalseyValueParser, Styles}, + builder::{ + styling::{AnsiColor, Effects}, + FalseyValueParser, Styles, + }, parser::ValuesRef, value_parser, Arg, ArgAction, ArgGroup, ArgMatches, Command, }, @@ -134,10 +137,12 @@ impl Config { .trailing_var_arg(true) .styles( Styles::styled() - .header(AnsiColor::Yellow.on_default()) + .header(AnsiColor::Yellow.on_default() | Effects::BOLD) + .invalid(AnsiColor::Red.on_default()) .literal(AnsiColor::Green.on_default()) - .placeholder(AnsiColor::Green.on_default()) - .usage(AnsiColor::Yellow.on_default()), + .placeholder(AnsiColor::Cyan.on_default()) + .usage(AnsiColor::Yellow.on_default() | Effects::BOLD) + .valid(AnsiColor::Green.on_default()), ) .arg( Arg::new(arg::CHECK)