[codex/replay-doc-check] Check the replay guide against its CLI options #635

Open
github-bot wants to merge 1 commit from github-bot/gh-635 into a-publier AGit
Owner

@⁠Cxyder on GitHub · 2026-11-27 15:26 UTC · original
Cxyder:codex/replay-doc-check → a-publier · +144 −0 · 6 files · 1 commits · open

The replay guide can mention a switch the CLI rejects and omit one that exists. This adds the two-way check requested in #513: cargo xtask replay-docs lists documented names with no corresponding option and declared long options missing from the reference. It exits nonzero on drift. It runs in the maintenance tool and needs no capture, game files, or GPU.

The command reads the Replay struct's Clap attributes (including explicit long names) and the replay reference, excluding the Cargo build and test instructions. It is opt-in; this PR does not gate CI on the unfinished guide or duplicate the option descriptions in the documentation PRs.

Checked against the current base and three proposed guides:

Guide revision Result
a-publier@4eb6cfd Reports stale --looks and missing --flow-slots, --image, --least, --roots, --top, --width
#521 at e6b3ec1 Pass
#528 at 0237cdb Reports only missing --image
#595 at 22fb834 Pass

All three guides merge cleanly with this change. On Windows with Rust 1.98.1, all 10 xtask tests passed, as did xtask Clippy with warnings denied, formatting, and the staged asset policy. No game or replay was started.

AI-assisted contribution.

**@⁠Cxyder** on GitHub · 2026-11-27 15:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/635) `Cxyder:codex/replay-doc-check` → `a-publier` · +144 −0 · 6 files · 1 commits · open The replay guide can mention a switch the CLI rejects and omit one that exists. This adds the two-way check requested in #513: `cargo xtask replay-docs` lists documented names with no corresponding option and declared long options missing from the reference. It exits nonzero on drift. It runs in the maintenance tool and needs no capture, game files, or GPU. The command reads the `Replay` struct's Clap attributes (including explicit long names) and the replay reference, excluding the Cargo build and test instructions. It is opt-in; this PR does not gate CI on the unfinished guide or duplicate the option descriptions in the documentation PRs. Checked against the current base and three proposed guides: | Guide revision | Result | | --- | --- | | `a-publier@4eb6cfd` | Reports stale `--looks` and missing `--flow-slots`, `--image`, `--least`, `--roots`, `--top`, `--width` | | #521 at `e6b3ec1` | Pass | | #528 at `0237cdb` | Reports only missing `--image` | | #595 at `22fb834` | Pass | All three guides merge cleanly with this change. On Windows with Rust 1.98.1, all 10 xtask tests passed, as did xtask Clippy with warnings denied, formatting, and the staged asset policy. No game or replay was started. AI-assisted contribution.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:36:57 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/635/head:github-bot/gh-635'
git switch 'github-bot/gh-635'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-635'
git switch 'github-bot/gh-635'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-635'
git switch 'github-bot/gh-635'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-635'
git switch 'a-publier'
git merge --squash 'github-bot/gh-635'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-635'
git switch 'a-publier'
git merge 'github-bot/gh-635'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.