Uh oh!
There was an error while loading. Please reload this page.
document one CLI rejection shape and exit 4 - #181
Merged
Conversation
The published exit-code table already said `4` meant invalid command input; the client only did that for the handful of commands that validated their own flags. Now that every command agrees, the command reference stops listing invalid input under `2` — that row is network failure alone. Adds the rejection output shape, the `--json` error envelope with its stable codes, and the group-help-on-stdout behavior. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
…bsence Review caught the over-promise: "what is missing" describes a missing argument, but an unknown command, an unrecognized flag, a malformed value, and excess arguments all reject with nothing missing. The shape claim (detail line, then Suggestion line) does hold for all of them, so the sentence now says what is wrong rather than what is absent, and names the three kinds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Pairs with agentsfleet/agentsfleet#617.
The published exit-code table in
cli/flags.mdxalready said4meant invalid command input. The client only did that for the handful of commands that validated their own flags — everything else exited2, which the same table assigns to network failure. Now that the client agrees,cli/agentsfleet.mdxstops listing invalid input under2; that row is network failure alone.Adds the rejection output shape, the
--jsonerror envelope with its stable codes, and the group-help-on-stdout behavior.🤖 Generated with Claude Code
Greptile Summary
The PR documents standardized CLI rejection handling, machine-readable error codes, exit code 4 for invalid invocations, and command-group help behavior.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (2): Last reviewed commit: "docs(m171): the rejection sentence cover..." | Re-trigger Greptile