Skip to content

docs(cli): document missing flags in --help output - #1082

Closed
andig wants to merge 2 commits into
yvgude:mainfrom
andig:docs/gain-by-tool-help
Closed

docs(cli): document missing flags in --help output#1082
andig wants to merge 2 commits into
yvgude:mainfrom
andig:docs/gain-by-tool-help

Conversation

@andig

@andig andig commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

gain --by-tool shipped without a line in lean-ctx --help, so the per-tool savings breakdown was invisible unless you read the source.

Audited the rest of the flag surface against src/cli/completions/spec.rs while in there and added the four other gaps.

Changes

  • gain --by-tool [--json] — new help line (per-tool savings: calls, tokens, USD, %)
  • gain --share — note --page alias (parsed at gain.rs:471, previously undocumented)
  • index ... [--force], proxy start ... [--detach], explore ... [--depth=N] — flags present in the completions spec but missing from help

Notes

Top-level help stays a summary — the ~150 subcommand-specific flags across the CLI are deliberately not enumerated here. Only flags already in the shell-completions spec (i.e. the advertised surface) were reconciled.

Docs only, no behavior change. cargo build clean.

🤖 Generated with Claude Code

@yvgude yvgude left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean documentation-only change. Adds missing flags to --help output: --by-tool, --force, --detach, --depth=N, updates --share alias. All flags match existing CLI implementation. LGTM.

@yvgude

yvgude commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Merged to main via CLI rebase+merge (part of batch merge session).

@yvgude yvgude closed this Jul 21, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants