review-state update should support --help flag #202
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#202
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Running './iw review-state update --help' currently executes a default update instead of showing usage information. It should display available options (--status, --display-text, --display-subtext, --display-type, --message, --needs-attention, --pr-url, --append-badge, --append-artifact, --append-action, --checkpoint, --input) and exit without modifying any state.
Superseded by #463, which requires a --help on every subcommand, dispatched before the action so it can never perform an update. Closing in favour of #463.
Delivered in IW-463 Phase 6.
iw review-state update --helpnow prints theupdatesubcommand's own rendered help at a real terminal and exits 0, modifying nothing:Every flag this issue listed is named, with what it does and how its absence resolves, together with the exit codes and an example. The help is rendered from
ReviewState's declaration, which the parser reads too, so the two cannot say different things.How it is reached: the launcher's pre-filter fires on an exact
--helpor-htoken, resolves the command, and hands the caller's own argv toiw.core.commands.Help. That walksCommandArgParser.dispatchdown through the subcommands, soupdateis reached by exactly the tokens that reach it when the command runs — no second resolution rule. Dispatch happens before any action, so the update can never be performed on a help request.Covered at two tiers:
core/test/HelpTest.scalaasserts the declaration reached isreview-state update(not a string the parent's help also renders), andtest/help-intercept.batscase 4c asserts the same invocation end to end throughiw-run.This issue was already closed on 2026-08-27 as superseded by #463; it stays closed. This comment records that the behaviour it asked for now exists.