A Rust library designed to make clap help output beautiful.
clor brings high-contrast badges, styled usage prompts, and clean aligned subcommand/option lists to clap CLI applications in Rust.
Tweet @vsnthdev, I would love to know your opinion & experience on this project 😍
- Beautiful badge-style section headers (
USAGE,COMMANDS,OPTIONS) - Works seamlessly with
clap's derive macro and builder API - Zero-dependency custom help renderer built on
clap
Add clor to your Cargo.toml:
[dependencies]
clap = { version = "4.5", features = ["derive"] }
clor = "0.0.2"Then attach .clor_style() to your clap Command:
use clap::{CommandFactory, Parser};
use clor::ClorExt;
#[derive(Parser)]
#[command(name = "mycli")]
#[command(about = "A sample CLI with clor styling")]
struct Cli {
#[arg(short, long)]
config: Option<String>,
}
fn main() {
let mut cmd = Cli::command().clor_style();
cmd.print_help().unwrap();
}The clor project is released under the zlib/libpng license.
Developed & maintained By Vasanth Srivatsa. Copyright 2026 © Vasanth Developer.
vsnth.dev · YouTube @vsnthdev · Twitter @vsnthdev · LinkedIn Vasanth Srivatsa
