Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clor comparison banner

A Rust library designed to make clap help output beautiful.

crates.io issues last commit


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 😍

✨ Features

  1. Beautiful badge-style section headers (USAGE, COMMANDS, OPTIONS)
  2. Works seamlessly with clap's derive macro and builder API
  3. Zero-dependency custom help renderer built on clap

🚀 Quick Start

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();
}

📰 License

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