A focused patch release that adds terminal-aware color to interpreted help output, tightens how negative numbers are parsed as flag values, and lowers the published crates' minimum supported Rust version.
Added
- Colorized help output. The
usageCLI,usage bash, andusage execnow render interpreted help with terminal-aware semantic styling (headings, options, metavars, inline markdown, andhelp_template{$…}tags). Coloring is auto-detected from the terminal and honorsNO_COLORandCLICOLOR_FORCE; plain rendering remains available for snapshots and generated artifacts (#1309, @jdx).
Fixed
- More predictable negative-value parsing. Tokens like
-1are only consumed as a detached flag value whenallow_negative_numbersis set or when the flag's value is truly required (nodefault_missing, not optional). This keeps optional anddefault_missingflags from swallowing negative numbers during subcommand andexternal_subcommanddiscovery, while required flags and explicit opt-ins still bind them correctly. Missing-value errors are also now reported for the awaiting flag even when another recognized option follows (#1317, #1318, @jdx). - Hidden commands excluded from Markdown docs. Single-file Markdown reference generation no longer emits sections for commands marked
hide=#true, matching the existing index and flag/arg filtering (#1315, @jdx). - Simplified the
required_unlesspredicate logic for arguments and flags with no change in behavior (#1326, @jdx).
Changed
- Lowered MSRV to Rust 1.91. The published
usage-lib,usage-dynamic,clap_usage, andusage-clicrates now build on Rust 1.91 (down from 1.95), lettingusage-cliinstall on runner images that ship Rust 1.94 (#1314, @jdx).
Dependency Updates
Full Changelog: v6.4.0...v6.4.1
💚 Sponsor usage
usage is maintained by @jdx, an open source developer for entire.io, the title sponsor of the jdx.dev open source tools including mise, aube, hk, and more. Work on usage is funded by sponsorships.
If usage powers CLI specs, docs, or completions for a tool you maintain or use, please consider sponsoring at jdx.dev. Every sponsorship helps the project stay independent and moving.