Skip to content

docs: put first move in gw -h and enrich subcommand help - #42

Merged
zawakin merged 1 commit into
mainfrom
feature/enrich-subcommand-help
Jun 29, 2026
Merged

docs: put first move in gw -h and enrich subcommand help#42
zawakin merged 1 commit into
mainfrom
feature/enrich-subcommand-help

Conversation

@zawakin

@zawakin zawakin commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes the two remaining gw findings from the CLI_REVIEW re-evaluation (gw 9.0 → target 10), building on #41.

Rule 6 — first move in -h

-h previously showed only the purpose line; the on-ramp was --help-only. Now -h leads with the first command:

Worktree-aware git workflow: branch -> PR -> cleanup, safely.

Start here:  gw new feature/login     # the full flow is in --help

Rule 14 — enrich subcommand --help

The root help got rich in #41 while subcommands stayed bare — an asymmetry the review flagged. Every subcommand --help now carries a description paragraph + an Example: block: home, new, cleanup, status, pause, abandon, undo, sync, open, await, plus worktree / worktree pool {warm,acquire,status,release,drain}. Destructive ones restate the danger (gw abandon, gw sync "rewrites history and force-pushes").

Progressive disclosure is preserved: each subcommand -h stays the one-line summary and signals (see more with '--help').

Verification

mise run verify passes (fmt, clippy, tests, build). Spot-checked gw -h, gw new -h/--help, gw sync --help, gw abandon -h, gw worktree pool acquire --help.

🤖 Generated with Claude Code

Close the two remaining CLI_REVIEW gaps for gw:

- Rule 6: -h now shows the first command ("Start here: gw new feature/login"),
  not just --help, so the on-ramp is in the reflex view.
- Rule 14: every subcommand --help gains a description paragraph + Example,
  matching the now-rich root. Covers home/new/cleanup/status/pause/abandon/
  undo/sync/open/await and the worktree pool commands, removing the
  rich-root / bare-subcommand asymmetry. Each -h stays the compact summary
  and signals "(see more with '--help')".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zawakin zawakin self-assigned this Jun 29, 2026
@zawakin
zawakin merged commit e937d1b into main Jun 29, 2026
7 checks passed
@zawakin
zawakin deleted the feature/enrich-subcommand-help branch June 29, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant