[worker:doc-drift] fix CLI reference drift in check and global flags - #438
Merged
norrietaylor merged 1 commit intoJun 17, 2026
Merged
Conversation
Correct three drifts in docs/reference/cli.md against the current implementation in crates/minimal/src/: - check: --harnesses -> --stacks (flag renamed; harness terminology replaced with stack in the description and filter note) - global flags: add the missing --offline row - --num-parallel-builds: short flag -j -> -n (clap derives -n from the field name; -j was never registered) Closes #388
📝 WalkthroughWalkthroughThree doc-drift corrections in ChangesCLI Reference Doc Drift Fixes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
norrietaylor
enabled auto-merge (squash)
June 17, 2026 18:59
twitchyliquid64
approved these changes
Jun 17, 2026
norrietaylor
deleted the
fix/cli-reference-drift-check-global-flags-bc8f95a42016ac16
branch
June 17, 2026 19:02
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 free
to 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.
Resolves the documentation drift reported in
#388. The CLI reference atdocs/reference/cli.mdhad three command-level drifts against the current implementation incrates/minimal/src/(verified at commit01badc92).What changed
All edits are confined to
docs/reference/cli.md:checkflag rename--harnesses->--stacks.CheckKindincrates/minimal/src/cmd_check.rsdeclarespackages,stacks,profiles(noharnesses), andcrates/minimal/src/main.rsdescribes the command as validating "packages, stacks, and profiles". Updated the flag row, the command description, and the filter-name note to use stack terminology sominimal check --stacksmatches reality.--offlineglobal flag row.crates/minimal/src/main.rsdefinesofflineas aglobal = trueflag, but the Global Flags table omitted it.--num-parallel-buildsshort flag-j->-n. The field uses#[arg(short, long, global = true)]with no explicit char, so clap derives-nfrom the field namenum_parallel_builds;-jwas never registered.Verification
This is a documentation-only change — no
.rsfiles were touched — socargo build/clippy/testbehavior is unaffected; thecargo build --workspace --all-targetsself-check is not applicable to a pure Markdown edit. Each of the three claims was verified against the current target source (cmd_check.rsCheckKind,main.rsofflineandnum_parallel_buildsarg attributes and theCheckcommand doc-comment) before editing. The non-bypassable host backstop still re-runs the full gate (cargo fmt --all --check,cargo build --workspace --all-targets --locked,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --all-targets --locked) before this PR opens.Closes #388
Summary by CodeRabbit
--offlineglobal flag to CLI reference--num-parallel-buildsshort option from-jto-ncheckcommand documentation to clarify validation scope for packages, stacks, and profiles with corresponding flag adjustments