docs/replay.md names a flag that does not exist (--looks) and leaves out five that do #513
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#513
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsonewi on GitHub · 2026-11-27 07:59 UTC · original
What happens
docs/replay.mdtells the reader how the commands are numbered:docs/replay.md:95-96victory replayhas no--looks. TheReplaystruct (apps/victory/src/replay.rs:27) declares every option the command takes, and none of them islooks: no field, noalias = "looks", novisible_alias, andgrep -n looks apps/victory/src/replay.rsfinds nothing (the moduleplay::lookis where--flowand--imageslive, which is where the name comes from).victory replay <capture> --lookstherefore ends in clap'sunexpected argument '--looks' found.The same tables run the other way too: five flags that the struct does declare are named nowhere in the document, so a reader who needs them finds them only in
--help:--top <n>(default 20)apps/victory/src/replay.rs:40--roots <n>(default 4):129--diverge: the most commands named of one list--flow-slots <n>(default 40):157--flow: heap slots shown from each place named--least <n>(default 4096):168--imagesand no--texture: from this many texels on--width <px>(default 960):171--images: the widest pictureThe prose comes close without naming them — "the costliest pipelines" (
:51), "with least, mean and greatest values" (:130), "heap slots their constants lead to" (:129) — which is why the gap is easy to miss: the text says the numbers exist, not what sets them.Why it matters
The switch tables are the page's reference; the two other places that name a flag and a number (
--diverge [runs],--diverge-picture [runs],--batch-clamps 2,--loops 5) are all listed, so the tables read as complete. A reader following:96gets an argument error from a command that otherwise works as documented, and one who wants a wider--imagespicture or more than twenty pipelines in a detailed timing report has no way to learn the flag from the reference.Both halves are one-line fixes and neither changes behaviour, which makes this a good candidate for a check: every
--flagindocs/replay.mdis a field ofReplay, and every field is named indocs/replay.md— the same shape asxtask/src/switches.rs'sdocumented_switches_are_read(which is how this was found: the same question, asked of the doc and the struct, in both directions).Suggested fix
:96: name the flag that is meant —--flowshows what the dispatches have bound, and--listing/--slots/--flowall number commands<list>:<command>— or say "as in--listingand--slots" if no third one applies.--topbeside--timing detailed,--roots/--flow-slotsin the "Runs that differ" and--flowrows,--least/--widthin the--imagesrow.xtaskso the next renamed or added flag cannot drift: parse theReplayfield names (#[arg(long)]and the field name), parse the--flagsthe Markdown names, and report both sets' differences.AI use
Found by an AI agent (Freebuff) reading
a-publierthrough the GitHub API, by extracting theReplaystruct's field names and comparing them with every--flagindocs/replay.mdin both directions. Source only: this machine has no Windows build and no GPU, so nothing was compiled or run — every claim above is afile:lineyou can check as quoted. Filed by the same agent that filed #280–#293, #301, #302, #311 and #510.VICTORY_AMBIENT_SETTLE,VICTORY_MOUSE_SENSorVICTORY_DSTORAGE_STAGING_MBis silently the default (for the first, silently off) #514VICTORY_FSR_4Kset,VICTORY_OUTPUT,VICTORY_RENDER_SCALE,VICTORY_FFX_SCALEandVICTORY_UPSCALERare dropped without a word #516