Repository navigation
usage 6.3.0 - #300440
Merged
Merged
usage 6.3.0#300440
Conversation
chenrui333
approved these changes
Aug 24, 2026
Contributor
|
🤖 An automated task has requested bottles to be published to this PR. Caution Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by
brew bumpCreated with
brew bump-formula-pr.Details
release notes
Semantic colors in help output by default. Coloured
--helpnow renders headings, option literals, and metavariables with distinct semantic colors so pages are easier to scan, while plain and piped output stays untouched (#1297, @jdx).Runtime style tags in
help_template. Templates can now colour and emphasize their own prose with a dependency-free tag vocabulary of 23 named styles (heading,option,metavar, the 8 standard and 8 bright ANSI colors, plusbold,dim,italic,underline). Styles nest and combine,{$$…}/{/$$}escape a literal tag, and substituted section text stays opaque so prose containing{$red}is left alone. Malformed markup falls back safely instead of panicking, and the vocabulary is validated in both Rust derives and KDL specs (#1297, @jdx).Optional
miettefeature. With the library's own error rendering now built in, an opt-inmiettefeature makesUsageErrand KDL parse diagnostics implementmiette::Diagnosticagain, preserving source spans, labels, severity, and help text for callers that already use a miette reporter (#1296, @jdx).Fixed
--report-unused-disable-directives-severity <SEVERITY>) no longer forces every entry on the page into block layout. Oversized entries drop into a wrapped block under their own spelling while shorter neighbors keep a readable two-column layout. Applied consistently across the reference, zero-allocation, and Go renderers (#1293, @jdx).…marker is no longer appended to repeatable flags in help tables,Usage:synopses, Markdown, or generated SDK docs, so options render with ordinary spellings like--env <ENV>. Value-side ellipses (<arg>…) are unchanged, and repeatability is still preserved structurally in the spec viavar(#1295, @jdx).headingsprose field introduced in v6.2.0, so a generated Go CLI renders the same declared section text as the Rust renderer instead of printing the heading alone (#1290, @jdx).Changed
kdland defaultmiettedependencies removed.usage-libnow vendors a trimmed KDL v2 parser and renders diagnostics (source labels, help, and codes) with a small in-process renderer, dropping two dependencies from the default build without changing spec parsing behaviour. Apache-2.0 notices for the vendored code are recorded inNOTICE.md(#1296, @jdx).Breaking Changes
UsageErrno longer derivesmiette::Diagnosticby default. Callers who relied on miette integration should enable the newmiettefeature to restore it (#1296).SpecFlag::usage()no longer round-trips the repeatability marker: parsing--flag…still setsvar, but reprinting yields--flag. Keepvar=#trueas the source of truth in specs rather than relying on the…suffix surviving a reparse (#1295).Full Changelog: jdx/usage@v6.2.0...v6.3.0
💚 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
usagepowers 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.View the full release notes at https://github.com/jdx/usage/releases/tag/v6.3.0.