Repository navigation
fix(patchy): help describes every argument and marks required flags - #681
Merged
Merged
Conversation
Every argument and flag on the listed commands now carries an authored description, and the entrypoint's help formatter appends `(required)` to flags the parser requires, as Effect marks optional arguments. The README lists init's --tier as 0|1|2. Closes #590 Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
fix/590-cli-help-metadata
branch
from
October 15, 2026 16:59
03fe81a to
c328d1e
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 16, 2026
…u when they fail (#720) Release 13's What's new entry, written from `c9b8fc4`, ahead of deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs and patch repos installed before this deploy are told to upgrade. | Change | PRs | | --- | --- | | New: Home puts the patches you use first | #713, #716, #719 | | New: Every patch in one list | #715 | | Improved: Each patch's page leads with Open | #717 | | New: See when your tools are failing | #718 | | Fixed: Everyone has a name | #687 | | Improved: Your company's look is easier to get right | #697, #696, #703, #688 | | Improved: Forms follow your look's error states | #691, #692 | | Improved: Clearer answers when a publish goes wrong | #686, #685, #689 | | Fixed: Your agent's Patchy commands are steadier | #695, #704, #680, #681 | | Behind the scenes: stricter checks on static pages and tools' database requests; malformed requests are logged | #682, #693, #683 | | Behind the scenes: usage numbers count every publish, sharing change and restore | #698, #699, #700, #690 | | Test and tooling only, no line | #705, #702, #701, #694, #684, #607 | Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
patchy --helpleft 26 arguments and flags across 13 commands with no description, or only Effect's generated(choices: …). It also never said a flag was required:patchy look publish --helpshowed--note string Why this revision, such as darker greenwith no sign the parser requires it. Effect's default formatter marks optional arguments but ignoresFlagDoc.required. Agents are told to read--help, so they had to guess.Fix
--forceis one sharedforceFlagacrosspublish,delete,retireandrestore, so its text can't drift between them.init --purposeanddelete --yessay in prose that agent,--jsonand non-terminal calls need them; the parser still treats them as optional.(required). The entrypoint'sCliOutputformatter wraps the defaultformatHelpDocand appends(required)to flags whereFlagDoc.requiredis true. That mirrors Effect's(optional)on arguments. Command metadata isn't touched, and optional flags render as before.--tierline now reads0|1|2.Parse-error output is unchanged. Usage still prints on stdout, as ADR-0004 records, and stderr's one line is
Missing required flag: --notewith exit 1 (the JSON envelope under--json).Tests
help.test.tswalks every command reachable frompatchy --helpin-process (Command.runWith(root)under a capturingCliOutputlayer). It fails when an argument or flag (global flags included) is undescribed or only has choices text, or when a command's help isn't captured. It also checks thatlook publish --noteis the only parser-required flag. Run against the oldcommands.ts, it fails listing exactly the 26 gaps from the issue.cli.test.tscase runs the built CLI.look publish --helpshows thedirdescription and--note … (required).look publish ./xexits 1 with the one-line error on stderr, usage on stdout and the JSON envelope under--json.By hand, against the built CLI
Before:
After:
I also read
patchy --help,login,add,describe,share,rollbackanddev --help; every row is described. None of these commands needs an instance, so I didn't startpnpm dev up.Surfaces
--tierline. No exit code, flag or error shape changed, so ADR-0004 stands. The global and project skills don't quote help output.Closes #590
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.