fix: Give global CLI flags a short first help line - #1084
Conversation
The doc comments for --config-dir, --provider, and --no-input had no blank line separating a summary from the prose, so clap used the whole multi-sentence block as short help. That block then rendered verbatim in -h on all 20 subcommand help screens, dominating each one. Add a concise first line to each flag and move the existing prose below a blank /// separator, so -h shows one line and --help keeps the full detail.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe CLI help text for three global options was reworded, ChangesCLI help and attach guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
Comment |
Fixes #1068
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABKmg5yQ
The
--config-dir,--provider, and--no-inputdoc comments inGlobalArgshad no blank///separator, so clap treated the whole multi-sentence block as short help and rendered it verbatim in-hon every subcommand's help screen. Each flag now leads with a concise first line, with the existing prose moved below a blank///, so-hstays short while--helpkeeps the full detail. The scoped Distillery pass surfaced no directly relevant short-help precedent.Verification
cargo fmt --all --check — pass (no drift)
cargo clippy --workspace --locked -- -D warnings — pass (0 warnings)
cargo build --workspace --locked — pass
cargo test --workspace --locked — pass (all suites, 0 failed)
Note
Make
--commandflag visible in CLI help formin session attachRemoves
hide = truefrom the--commandflag inAttachArgsso it appears in CLI help output. Also improves doc comments on global flags (--config-dir,--provider,--no-input) to clarify defaults and behavior, and updates the non-TTY error message to reference--commandwithout describing it as hidden.Macroscope summarized 941b329.
Summary by CodeRabbit
--commandoption visible in session attach help.--command.