Skip to content

Commit

Permalink
Style help text (#2501)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 2, 2024
1 parent 563eee6 commit e8d6f2d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -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,
},
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e8d6f2d

Please sign in to comment.