Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Bring colors to help message #1650

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cmd/soroban-cli/src/commands/global.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
use clap::arg;
use clap::{
arg,
builder::styling::{AnsiColor, Styles},
};
use std::path::PathBuf;

use super::config;

const USAGE_STYLES: Styles = Styles::styled()
.header(AnsiColor::Red.on_default().bold())
.usage(AnsiColor::Red.on_default().bold())
.literal(AnsiColor::Blue.on_default().bold())
.placeholder(AnsiColor::Green.on_default());
leighmcculloch marked this conversation as resolved.
Show resolved Hide resolved

#[derive(Debug, clap::Args, Clone, Default)]
#[group(skip)]
#[allow(clippy::struct_excessive_bools)]
#[command(styles = USAGE_STYLES)]
pub struct Args {
#[clap(flatten)]
pub locator: config::locator::Args,
Expand Down