CLI: rpf and shaders refuse an option they cannot read, and a typo #2293

Closed
b3IKK wants to merge 1 commit from upstream-pr/2303 into main
b3IKK commented 2026-11-25 13:17:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T13:17:51Z.


Fixes #2266.

xcl rpf and xcl shaders read their options by position and dropped whatever they did not understand, so a mistake changed what the command did while it still exited 0:

  • xcl rpf pkg.rpf --extract (no value) listed instead of extracting;
  • xcl rpf pkg.rpf --fnid foo filtered nothing and listed everything;
  • xcl rpf pkg.rpf --top abc took the default of 30;
  • xcl shaders pack --hash 0xZZ meant "no filter", i.e. the whole corpus swept, which looks like it is working and can take hours;
  • xcl shaders --compile x, --threads x, --timeout x … all took their defaults.

xcl disasm already refuses such values; this gives the other two the same behaviour.

Since the review (@nnonno91 ran the binary): the options that only one branch of xcl shaders uses were still checked inside that branch, so on a path that never reached it (--threads abc on an empty folder, --only without --precompile) the run printed the summary and exited 0, and a bad option after a missing input was reported after the file error rather than before it. Every value option is now checked at the top of run, before anything is read — the four cases at the bottom of the table above.

A small crates/xcl/src/cli.rs now does the reading: text (an option whose value is missing or is another option is an error), number (decimal or 0x hexadecimal), hex_u64 (--hash), and unknown (an argument starting with - that the subcommand does not know). xcl rpf's parsing moved into an options() that returns Result, so both the option set and the values are testable; xcl shaders validates its option list and every numeric option at the top of run, before anything is read, so a typo costs no I/O or translation.

What is in it

  • crates/xcl/src/cli.rs (new): the helpers above, with unit tests for a missing value, a value that is another option, decimal/hexadecimal numbers, a bad hash, and an unknown option.
  • crates/xcl/src/rpf.rs: options() -> Result<Options, String> (--top, --find, --extract, --out, --full, --probe), used by run; test an_unknown_or_unreadable_option_is_an_error.
  • crates/xcl/src/shaders.rs: the known-option list, every numeric option (--top, --compile, --windows, --min-kb, --count, --split, --repeat, --limit, --sample, --seed, --threads, --max-bytes, --timeout) and the value options --example, --only, --dump, --hash read strictly; test a_typo_or_an_unreadable_number_is_refused.

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 1248 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, no heap windows, and cannot disable the driver cache (Windows Developer Mode is required))
  • the new tests: cli::tests 3, rpf::tests::an_unknown_or_unreadable_option_is_an_error 1, shaders::tests::a_typo_or_an_unreadable_number_is_refused 1 — all pass; the shaders test fails with the unknown-option check taken out (an unknown option is not ignored)
  • the release binary, on this machine:
command before now
xcl rpf no-such.rpf --top abc exit 0 path, default 30 exit 2, xcl rpf: invalid value for --top: abc
xcl rpf no-such.rpf --fnid foo every record listed, exit 0 exit 2, xcl rpf: unknown option --fnid; see xcl --help``
xcl rpf no-such.rpf --extract listed, exit 0 exit 2, xcl rpf: --extract needs a value
xcl shaders no-such --top abc exit 0 path, default 60 exit 2, xcl shaders: invalid value for --top: abc
xcl shaders <file> --direct --hash 0xZZ exit 0, whole corpus swept exit 2, xcl shaders: invalid value for --hash: 0xZZ
xcl shaders no-such --fnid x exit 0 exit 2, xcl shaders: unknown option --fnid; see xcl --help``
xcl shaders <empty folder> --threads abc exit 0, empty-folder summary exit 2, xcl shaders: invalid value for --threads: abc
xcl shaders <empty folder> --timeout abc exit 0, empty-folder summary exit 2, xcl shaders: invalid value for --timeout: abc
xcl shaders <empty folder> --only exit 0, empty-folder summary exit 2, xcl shaders: --only needs a value
xcl shaders <empty folder> --max-bytes x exit 0, empty-folder summary exit 2, xcl shaders: invalid value for --max-bytes: x

(The "before" column is the behaviour the issue describes from the source; I ran only the new binary.)

Regression run

main (426a5a7, clean tree, no local changes):

xcl-smoke v1
commit: 426a5a745db4d5e4b037449ede0b70cb342f5192
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1642 (PresentX 1642)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15158 MB

PR (8d1544f, clean tree, no local changes):

xcl-smoke v1
commit: 8d1544f55ba246a8be0ee60dcaa8e18afe1c86c0
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1643 (PresentX 1643)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15508 MB

Not tested

  • every existing usage of these commands: CI's scripts/ and tests/ do not pass an option these changes now refuse (the workspace suite passes), but a contributor's own command line with an option I forgot to list would now be refused instead of ignored — the list is OPTIONS in crates/xcl/src/shaders.rs and the KNOWN list in rpf::options
  • xcl --help's usage text, which still omits some flags: that is #2216
  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Claude Fable 5.2: added the argument helpers, moved xcl rpf's parsing into a testable options(), made xcl shaders strict, wrote the tests (and confirmed the shaders one fails without the change), ran the suite, the binary's cases above and the scripts/smoke.ps1 pair.
<!-- greyfinch-sync:ivall/xcl:issue:6605377622 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T13:17:51Z. --- Fixes #2266. `xcl rpf` and `xcl shaders` read their options by position and dropped whatever they did not understand, so a mistake changed what the command did while it still exited 0: - `xcl rpf pkg.rpf --extract` (no value) listed instead of extracting; - `xcl rpf pkg.rpf --fnid foo` filtered nothing and listed everything; - `xcl rpf pkg.rpf --top abc` took the default of 30; - `xcl shaders pack --hash 0xZZ` meant "no filter", i.e. the whole corpus swept, which looks like it is working and can take hours; - `xcl shaders --compile x`, `--threads x`, `--timeout x` … all took their defaults. `xcl disasm` already refuses such values; this gives the other two the same behaviour. **Since the review** (@nnonno91 ran the binary): the options that only one branch of `xcl shaders` uses were still checked inside that branch, so on a path that never reached it (`--threads abc` on an empty folder, `--only` without `--precompile`) the run printed the summary and exited 0, and a bad option after a missing input was reported after the file error rather than before it. Every value option is now checked at the top of `run`, before anything is read — the four cases at the bottom of the table above. A small `crates/xcl/src/cli.rs` now does the reading: `text` (an option whose value is missing or is another option is an error), `number` (decimal or `0x` hexadecimal), `hex_u64` (`--hash`), and `unknown` (an argument starting with `-` that the subcommand does not know). `xcl rpf`'s parsing moved into an `options()` that returns `Result`, so both the option set and the values are testable; `xcl shaders` validates its option list and every numeric option at the top of `run`, before anything is read, so a typo costs no I/O or translation. **What is in it** - `crates/xcl/src/cli.rs` (new): the helpers above, with unit tests for a missing value, a value that is another option, decimal/hexadecimal numbers, a bad hash, and an unknown option. - `crates/xcl/src/rpf.rs`: `options()` -> `Result<Options, String>` (`--top`, `--find`, `--extract`, `--out`, `--full`, `--probe`), used by `run`; test `an_unknown_or_unreadable_option_is_an_error`. - `crates/xcl/src/shaders.rs`: the known-option list, every numeric option (`--top`, `--compile`, `--windows`, `--min-kb`, `--count`, `--split`, `--repeat`, `--limit`, `--sample`, `--seed`, `--threads`, `--max-bytes`, `--timeout`) and the value options `--example`, `--only`, `--dump`, `--hash` read strictly; test `a_typo_or_an_unreadable_number_is_refused`. **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 1248 passed, 0 failed, 46 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, `no heap windows`, and `cannot disable the driver cache (Windows Developer Mode is required)`) - the new tests: `cli::tests` 3, `rpf::tests::an_unknown_or_unreadable_option_is_an_error` 1, `shaders::tests::a_typo_or_an_unreadable_number_is_refused` 1 — all pass; the shaders test fails with the unknown-option check taken out (`an unknown option is not ignored`) - the release binary, on this machine: | command | before | now | |---|---|---| | `xcl rpf no-such.rpf --top abc` | exit 0 path, default 30 | exit 2, `xcl rpf: invalid value for --top: abc` | | `xcl rpf no-such.rpf --fnid foo` | every record listed, exit 0 | exit 2, `xcl rpf: unknown option --fnid; see `xcl --help`` | | `xcl rpf no-such.rpf --extract` | listed, exit 0 | exit 2, `xcl rpf: --extract needs a value` | | `xcl shaders no-such --top abc` | exit 0 path, default 60 | exit 2, `xcl shaders: invalid value for --top: abc` | | `xcl shaders <file> --direct --hash 0xZZ` | exit 0, whole corpus swept | exit 2, `xcl shaders: invalid value for --hash: 0xZZ` | | `xcl shaders no-such --fnid x` | exit 0 | exit 2, `xcl shaders: unknown option --fnid; see `xcl --help`` | | `xcl shaders <empty folder> --threads abc` | exit 0, empty-folder summary | exit 2, `xcl shaders: invalid value for --threads: abc` | | `xcl shaders <empty folder> --timeout abc` | exit 0, empty-folder summary | exit 2, `xcl shaders: invalid value for --timeout: abc` | | `xcl shaders <empty folder> --only` | exit 0, empty-folder summary | exit 2, `xcl shaders: --only needs a value` | | `xcl shaders <empty folder> --max-bytes x` | exit 0, empty-folder summary | exit 2, `xcl shaders: invalid value for --max-bytes: x` | (The "before" column is the behaviour the issue describes from the source; I ran only the new binary.) **Regression run** main (`426a5a7`, clean tree, no local changes): ``` xcl-smoke v1 commit: 426a5a745db4d5e4b037449ede0b70cb342f5192 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1642 (PresentX 1642) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15158 MB ``` PR (`8d1544f`, clean tree, no local changes): ``` xcl-smoke v1 commit: 8d1544f55ba246a8be0ee60dcaa8e18afe1c86c0 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1643 (PresentX 1643) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15508 MB ``` **Not tested** - every existing usage of these commands: CI's `scripts/` and `tests/` do not pass an option these changes now refuse (the workspace suite passes), but a contributor's own command line with an option I forgot to list would now be refused instead of ignored — the list is `OPTIONS` in `crates/xcl/src/shaders.rs` and the `KNOWN` list in `rpf::options` - `xcl --help`'s usage text, which still omits some flags: that is #2216 - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Claude Fable 5.2: added the argument helpers, moved `xcl rpf`'s parsing into a testable `options()`, made `xcl shaders` strict, wrote the tests (and confirmed the shaders one fails without the change), ran the suite, the binary's cases above and the `scripts/smoke.ps1` pair.
nnonno91 commented 2026-11-25 14:10:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:04:22Z.


@b3IKK I retested the updated CLI and confirmed all eight checks below. Thanks for the fix.

Retest on 8d1544f55ba246a8be0ee60dcaa8e18afe1c86c0

The previous failures below are resolved in this retest. I rebuilt the clean head with cargo build --locked -p xcl --bin xcl on the same Windows and Rust setup. On an empty folder, --threads abc, --timeout abc, --only and --max-bytes x each exited 2 with the option-specific error. On a nonexistent input, --direct --threads abc, --direct --timeout abc and --precompile --only --pipelines each exited 2 with the option error before the missing-file error could occur. The valid-options control (--direct --threads 2 --timeout 10) reached the expected missing-file diagnostic. All eight CLI assertions passed. No game, GPU or workspace-suite run. OpenAI Codex (GPT-6.2 Sol) ran and reported the retest.


I ran the actual CLI on this head and found that some malformed shader options still exit successfully, or are checked only after input I/O.

Tested

  • Clean d8e8a93822a7e9ab204ec1e36bf7f7d797ff5f9f. Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, Rust 1.100.0 MSVC, unoptimized cargo build --locked -p xcl --bin xcl. Used an empty temporary directory and a nonexistent file inside it.
  • With a missing input, xcl rpf <missing> --extract, --top abc, --fnid foo, and --typo each exited 2 with an option-specific diagnostic. xcl shaders <missing> --hash 0xZZ and --typo did the same.
  • With an empty directory, xcl shaders <empty> --threads abc, --timeout abc, and --only each exited 0 and printed the normal empty-folder summary. With --direct, the first two exited 2 with their numeric diagnostics on the empty directory. With --precompile --only --pipelines, the empty directory gave --only needs a value.
  • With the missing path, xcl shaders <missing> --direct --threads abc, --direct --timeout abc, and --precompile --only --pipelines each exited 2 with the file-not-found message before reaching the bad option. Those cases still differ from the description's validation before reading input.

Not tested

Real archive contents, game runs, GPU translation, and the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) ran the CLI checks and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7164714007 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7164714007). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T14:04:22Z. --- @b3IKK I retested the updated CLI and confirmed all eight checks below. Thanks for the fix. **Retest on `8d1544f55ba246a8be0ee60dcaa8e18afe1c86c0`** The previous failures below are resolved in this retest. I rebuilt the clean head with `cargo build --locked -p xcl --bin xcl` on the same Windows and Rust setup. On an empty folder, `--threads abc`, `--timeout abc`, `--only` and `--max-bytes x` each exited 2 with the option-specific error. On a nonexistent input, `--direct --threads abc`, `--direct --timeout abc` and `--precompile --only --pipelines` each exited 2 with the option error before the missing-file error could occur. The valid-options control (`--direct --threads 2 --timeout 10`) reached the expected missing-file diagnostic. All eight CLI assertions passed. No game, GPU or workspace-suite run. OpenAI Codex (GPT-6.2 Sol) ran and reported the retest. --- I ran the actual CLI on this head and found that some malformed shader options still exit successfully, or are checked only after input I/O. **Tested** - Clean `d8e8a93822a7e9ab204ec1e36bf7f7d797ff5f9f`. Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, Rust 1.100.0 MSVC, unoptimized `cargo build --locked -p xcl --bin xcl`. Used an empty temporary directory and a nonexistent file inside it. - With a missing input, `xcl rpf <missing> --extract`, `--top abc`, `--fnid foo`, and `--typo` each exited 2 with an option-specific diagnostic. `xcl shaders <missing> --hash 0xZZ` and `--typo` did the same. - With an empty directory, `xcl shaders <empty> --threads abc`, `--timeout abc`, and `--only` each exited **0** and printed the normal empty-folder summary. With `--direct`, the first two exited 2 with their numeric diagnostics on the empty directory. With `--precompile --only --pipelines`, the empty directory gave `--only needs a value`. - With the missing path, `xcl shaders <missing> --direct --threads abc`, `--direct --timeout abc`, and `--precompile --only --pipelines` each exited 2 with the file-not-found message before reaching the bad option. Those cases still differ from the description's validation before reading input. **Not tested** Real archive contents, game runs, GPU translation, and the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) ran the CLI checks and wrote this report.
b3IKK commented 2026-11-25 15:07:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T14:22:19Z.


Thank you — all four are real holes in what I pushed, and the branch-local placement is exactly why they happened.

Pushed 8d1544f: every value option of xcl shaders is validated at the top of run before the input is read, including --threads, --timeout, --max-bytes, --sample, --seed, --split, --only and --dump. On an empty folder:

command now
xcl shaders <empty> --threads abc exit 2, invalid value for --threads: abc
xcl shaders <empty> --timeout abc exit 2, invalid value for --timeout: abc
xcl shaders <empty> --only exit 2, --only needs a value
xcl shaders <empty> --max-bytes x exit 2, invalid value for --max-bytes: x

The unit test now covers the empty-folder case for each of those. Suite on this head: 1248 passed, 0 failed, 46 ignored; smoke blocks for 426a5a7 and 8d1544f are in the description. AI use: OpenCode, Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7165174724 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7165174724). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T14:22:19Z. --- Thank you — all four are real holes in what I pushed, and the branch-local placement is exactly why they happened. Pushed `8d1544f`: every value option of `xcl shaders` is validated at the top of `run` before the input is read, including `--threads`, `--timeout`, `--max-bytes`, `--sample`, `--seed`, `--split`, `--only` and `--dump`. On an empty folder: | command | now | |---|---| | `xcl shaders <empty> --threads abc` | exit 2, `invalid value for --threads: abc` | | `xcl shaders <empty> --timeout abc` | exit 2, `invalid value for --timeout: abc` | | `xcl shaders <empty> --only` | exit 2, `--only needs a value` | | `xcl shaders <empty> --max-bytes x` | exit 2, `invalid value for --max-bytes: x` | The unit test now covers the empty-folder case for each of those. Suite on this head: 1248 passed, 0 failed, 46 ignored; smoke blocks for `426a5a7` and `8d1544f` are in the description. AI use: OpenCode, Claude Fable 5.2.
throny commented 2026-11-25 15:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T15:07:57Z.


Two contributors checked independently and found that #2285 solves the same problem (for #2266) in a different way: #1607, group D78. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7166353439 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7166353439). Originally posted by [throny](https://github.com/throny) on 2026-11-25T15:07:57Z. --- <!-- xcl-1607-hint:D78 --> Two contributors checked independently and found that #2285 solves the same problem (for #2266) in a different way: #1607, group D78. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
upstream-sync closed this pull request 2026-11-25 16:11:42 +00:00
itsonewi commented 2026-11-25 16:12:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsonewi on 2026-11-25T15:56:53Z.


Heads-up on coordination: #2285 also fixes #2266 and creates the same new file (crates/xcl/src/cli.rs) with a different API, so the two cannot both merge. There is a side-by-side comparison of the two PRs on #2266 (options, exit codes, tests, changed lines), including one factual difference in this PR: unknown() walks every argument, values included, so a value that begins with a single dash is reported as an unknown option - the unit test above it comments "values are not looked at", which the implementation does not match. Where -- prefixed values are rejected earlier by text(), so it only bites on single-dash values.

Nothing here needs an action beyond deciding that case; the rest is so the work is not lost to a rebase.


AI use: read both patches and the current main through the GitHub API for that comparison; no code was written by an agent here and no build was run.

<!-- greyfinch-sync:ivall/xcl:comment:7167455062 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7167455062). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-25T15:56:53Z. --- Heads-up on coordination: #2285 also fixes #2266 and creates the same new file (`crates/xcl/src/cli.rs`) with a different API, so the two cannot both merge. There is a side-by-side comparison of the two PRs on #2266 (options, exit codes, tests, changed lines), including one factual difference in this PR: `unknown()` walks every argument, values included, so a value that begins with a single dash is reported as an unknown option - the unit test above it comments "values are not looked at", which the implementation does not match. Where `--` prefixed values are rejected earlier by `text()`, so it only bites on single-dash values. Nothing here needs an action beyond deciding that case; the rest is so the work is not lost to a rebase. --- **AI use:** read both patches and the current `main` through the GitHub API for that comparison; no code was written by an agent here and no build was run.
b3IKK commented 2026-11-25 16:12:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T16:02:07Z.


Closing in favour of #2285, which fixes #2266 and was opened at 12:26Z, before this one (13:17Z) - per the one-PR-per-change rule the earlier author's fix is the one to merge.

Its single-pass Parser also replaces the per-option args.iter().position(..) lookups instead of wrapping them, and it has end-to-end coverage in tests/rpf_e2e.rs / tests/shaders_e2e.rs; its checks are green.

The unknown() inconsistency in this branch is real: it walks values too, while the unit test above it says values are not looked at; values starting with -- are caught earlier by text(), so only a single-dash value is affected. No action is needed here - #2285's parser does not have that shape.

AI use: OpenCode, Claude Fable 5.2 read the comparison on #2266 and #2285's checks and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7167534193 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7167534193). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T16:02:07Z. --- Closing in favour of #2285, which fixes #2266 and was opened at 12:26Z, before this one (13:17Z) - per the one-PR-per-change rule the earlier author's fix is the one to merge. Its single-pass ``Parser`` also replaces the per-option ``args.iter().position(..)`` lookups instead of wrapping them, and it has end-to-end coverage in ``tests/rpf_e2e.rs`` / ``tests/shaders_e2e.rs``; its checks are green. The ``unknown()`` inconsistency in this branch is real: it walks values too, while the unit test above it says values are not looked at; values starting with ``--`` are caught earlier by ``text()``, so only a single-dash value is affected. No action is needed here - #2285's parser does not have that shape. AI use: OpenCode, Claude Fable 5.2 read the comparison on #2266 and #2285's checks and wrote this.
DavidM1911 commented 2026-11-25 18:04:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:41:09Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7169854544 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2303#issuecomment-7169854544). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T17:41:09Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2293
No description provided.