pycli-color

Community

Consistent colorized argparse help output.

Authorcanyangliunian
Version1.0.0
Installs0

System Documentation

What problem does it solve?

argparse-based CLIs often have inconsistent help output across projects. This skill standardizes the coloring of option tokens (starting with -) and metavars (UPPERCASE or containing _) in -h/--help, enabling controlled color strategies like auto, NO_COLOR, and FORCE_COLOR.

Core Features & Use Cases

  • Standardized, colorized help formatter for Python argparse CLIs.
  • Supports deterministic coloring rules for option tokens and metavar tokens, plus a tunable color enablement policy.
  • Works across scripts via a reusable ColorHelpFormatter and a minimal CLI example like the included demo.

Quick Start

Run the provided demo script to verify colored --help output in a local environment.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pycli-color
Download link: https://github.com/canyangliunian/Agent-skills/archive/main.zip#pycli-color

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.