Skip to content

Commit

Permalink
Added colors for help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
41Leahcim committed Sep 21, 2023
1 parent 1e3b662 commit 1039889
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
use clap::Parser;
use clap::{
builder::{styling::AnsiColor, Styles},
Parser,
};

const ABOUT: &str = "A command line music radio client for https://coderadio.freecodecamp.org
GitHub: https://github.com/JasonWei512/code-radio-cli";

const STYLE: Styles = Styles::styled()
.header(AnsiColor::Yellow.on_default())
.usage(AnsiColor::Yellow.on_default())
.literal(AnsiColor::Green.on_default())
.placeholder(AnsiColor::Green.on_default());

#[derive(Parser, Debug)]
#[clap(author, version, about = ABOUT)]
#[clap(author, version, about = ABOUT, styles = STYLE)]
pub struct Args {
/// Manually select a station
#[clap(short, long)]
Expand Down

0 comments on commit 1039889

Please sign in to comment.