CLI: xcl <command> --help prints the usage #1468
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1468
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1468"
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?
@Royalflamejlh on GitHub · 2026-11-24 16:34 UTC · original
Royalflamejlh:fix/cli-command-help→main· +19 −0 · 2 files · 1 commits · openxcl shaders --helpansweredxcl shaders: --help: File not found. (os error 2)and exit 2. Every command reads its second argument as the file or folder to open, so onlyxcl --helpreached the usage.--helpor-hright after a command now prints the usage and exits 0.What is in it
crates/xcl/src/main.rs: one match arm ahead of the commands.crates/xcl/tests/cli_help.rs: runs the binary forrun,inspect,disasm,shadersandrpfwith--helpand with-h, and expects exit 0 and the usage on stdout. Before the change it failed onxcl run --help(exit 2,xcl: --help: File not found. (os error 2)).Tested
x86_64-pc-windows-gnu.cargo test --workspace --release --target x86_64-pc-windows-gnu -- --test-threads=4onbcb28d2: 765 passed, 4 failed, 41 ignored (lib 719 / 1 / 21, the other test binaries 46 / 3 / 20). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).mainb7aa9f3in the same setup (764 passed, 4 failed, 41 ignored there):gpu_depth_buffer_created_for_unordered_access_is_placed(lib),test_title_runs_and_game_folder_is_untouched,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff.mainas well, and are not in the counts (--skip):d32s8_targets_take_their_own_size_of_video_memoryandreservable_agrees_with_the_driver. Each passes when run alone onmain.cargo test --workspace --release --no-fail-fast -j 8 -- --test-threads=4onbcb28d2, MSVC toolchain, 1 run each, started over SSH: RTX 5070 Ti 16 GB (driver 621.24, Ryzen 7 9800X3D, 26H2 build 26300.9974, rustc 1.99.1) and RTX 2070 SUPER 8 GB (driver 621.01, Ryzen 7 5700X3D, 25H2 build 26200.9711, rustc 1.100.0). On the first machine the processor's integrated AMD graphics (driver 32.0.21030.2001) is DXGI adapter 0 over SSH, so a test that takes adapter 0 ran on it and not on the RTX 5070 Ti. On each: 770 passed, 1 failed, 41 ignored (lib 722 / 0 / 21), SKIPPED the same two as above, andhelp_after_a_command_prints_the_usagepassed. The one failure istest_title_runs_and_game_folder_is_untouched, and it is the way the run was started: an SSH session has no desktop (session 0), and the test title's swap chain cannot be made (CreateSwapChainForHwnd…0x887A0022). Started in the logged-in desktop session on the RTX 2070 SUPER machine,cargo test -p xcl --test e2e --releaseonbcb28d2gave 3 passed, 0 failed (1 run). (On the RTX 5070 Ti machine the suite ran before the workspace was built, so there that test stopped at "build first"; rerun aftercargo build --workspace --release, still over SSH, it stopped at the swap chain as well. Started in the desktop session there too, the same command gave 3 passed, 0 failed, with the test title on the RTX 5070 Ti (1 run).)bcb28d2on the RTX 5070 Ti machine, started in the logged-in desktop session (1 run): 771 passed, 0 failed, 41 ignored (lib 722 / 0 / 21), SKIPPED the same two, andhelp_after_a_command_prints_the_usagepassed. There the test that takes adapter 0 ran on the RTX 5070 Ti (its targets had that card's sizes, 41,811,968 bytes each).Regression run
Both blocks are from
scripts/smoke.ps1, unchanged, run by PowerShell 7 on Linux withxcl.exestarted through Wine, on a retail title, withXCL_PSO_PRELOAD=0. Under Wine "peak commit" reads 0 MB, andexit: 0x89is the wrapper ending Wine after XCL's ownprocess ends, not XCL's exit code. The blocks sayRTX 4060 Ti 8GBbecause that is the name vkd3d-proton gives this 16 GB card.main:
PR:
Not tested
AI use
xcl <command> --helpprints the usage bcb28d2ae1@nnonno91 on GitHub · 2026-11-24 17:05 UTC · original
Independent native Windows test of
bcb28d2ae1f2bab1c6bfa22e3e08287923e9627c.Tested
cargo build --workspace --lockedpassed.cargo test --locked -p xcl --test cli_help -- --nocapturepassed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputfinished with 771 passed, 0 failed, 41 ignored, and noSKIPPEDGPU lines. The bundled title test passed.b7aa9f3bd212088e0d927439284dc5ed325ce3c7withcargo build --locked -p xcl --bin xcland called each build directly. All ten combinations ofrun,inspect,disasm,shaders, orrpfwith--helpor-hgave a file error and exit 2 on the base. On the PR they printed the same usage as top-level--help, with exit 0 and empty stderr.shaderswith a genuinely missing file returned the same error and exit 2.inspect <same locally built xcl.exe> --jsonreturned identical valid JSON and exit 0.Not tested
Retail-title smoke runs, release builds, and Wine. The base build was used for the CLI comparison.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) ran the checks and drafted this report.
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@S1m0ne1997 on GitHub · 2026-11-25 15:20 UTC · original
Test report for
bcb28d2ae1f2bab1c6bfa22e3e08287923e9627c(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 771 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).Regression run (retail title,
scripts/smoke.ps1 -Seconds 60, release;mainbuilt from the commit in its block, this PR from its head with no changes tocrates/, both run with thescripts/smoke.ps1ofmain, which hashes the name of the game folder)main:
this PR:
Peak commit is over the 125 % rule: this PR's run peaked at 21203 MB, 129 % of
main's 16384 MB (frames: within 80 %). I can't tell from this whether the PR causes it: this branch is based onb7aa9f3, 440 commits older than themaincommit (06c9f55) its run is compared with, and each side was run once. A smoke run of the base itself, or of this PR rebased onto currentmain, would separate the two.Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@luckyteagirl on GitHub · 2026-11-26 09:30 UTC · original · reviewed
On
bcb28d2, the new second-argument help arm matchesSome(_)before command dispatch.xcl shdaers --help(misspelled/unknown command) now prints global usage and exits 0, where the normal unknown-command path on main exits 2. It also preempts cases such asxcl --version --help, which previously reported the version. The added integration test exercises only the five known commands, so it misses this change in CLI error behavior.Could the guard match only
run,inspect,disasm,shaders, andrpf? Acli_helpcontrol with an unknown command followed by--helpshould retain the nonzero exit while the ten known command/flag pairs keep passing. This is exact-head source review only; I did not run the binary.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.