Repository navigation
Conversation
check_no_game_data.py read `--help` as a path and answered "cannot read --help", exit 2, in the tool every contributor is told to run; it now prints the usage text it already carries and exits 0. play-linux.sh and run_wine_session.sh print their usage before any environment check, where they used to answer with an error (and play-linux.sh's no-argument case still prints the same usage, on stderr, exit 2). run_game_wine.sh's one-line Usage line names the required --shaders, which its Inputs section already listed. A test per script fails on main's copies and passes here.
…ME_DIR Dropping -h from run_wine_session.sh or check_no_game_data.py now fails the test that covers it, and play-linux.sh's usage lists LEONIDA_GAME_DIR with the other path variables (it already honours it). AI-assisted.
4 tasks done
KelboLive
reviewed
Dec 1, 2026
KelboLive
left a comment
There was a problem hiding this comment.
This one changed since #2853: 1228aad13 fixes both nits I raised — -h is now covered in both shell tests, and play-linux.sh's usage names LEONIDA_GAME_DIR. Under WSL the suites are green (play_linux 1/1, run_wine_session 5/5, check_no_game_data 22/22), merge-tree is clean and keeps main's --cache default. Good to merge.
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.
Re-created from the original #2853.
aznohonza/mandy-contribwas made private at 21:41 UTC on 2026-12-01, which detached the fork and permanently closed its pull requests; GitHub refuses to reopen them (422 state cannot be changed). Same branch, same head6da607c0968fd3b6bce7193ea58fc30e585aabc5. The original review thread is at #2853.This head also carries
1228aad13, the two review nits:-hcoverage intest_run_wine_sessionandtest_check_no_game_data, andLEONIDA_GAME_DIRinplay-linux.shusage.Claimed in the coordination issue as: ENTRY-POINT-HELP-PY-SH
What and why
KelboLive's 06:36 finding lists entry points that cannot produce help. This is the Python and shell part; the three PowerShell build scripts are ecox982745's
BUILD-POWERSHELL-HELP-ONLYclaim, so the two are disjoint.scripts/check_no_game_data.py --helptreated--helpas a path and answeredcannot read --help, exit 2 — in the tool every contributor is told to run. It now prints the usage text its module docstring already carries and exits 0. Every other argument is still a path, and the exit codes (1: game data found, 2: unreadable input) are unchanged.scripts/play-linux.sh --helpansweredNo --help, exit 1. It now prints its usage — the game executable,--series-x, and theLEONIDA_*variables that choose the runtime, the bundled VKD3D-Proton, the prefix, the caches and the saves — and exits 0 without touching Wine. No argument still prints the same usage, on stderr, exit 2, as before.scripts/run_wine_session.sh --helpexited 1 on the missingWINEPREFIX. It now prints its usage and exits 0 before that check.scripts/run_game_wine.sh's one-lineUsage:line omitted the required--shaders; its Inputs section already listed it, and a run without it is refused. The line names it now.Left out on purpose:
compute_workers_win.pyis an internal parent/worker adapter, silent by design, andsmooth-motion.ps1plusgame-gate.ps1's-Verbvalues are PowerShell, which this machine has nopwshto run.Tested
python -I tests/test_check_no_game_data.py22 pass,tests/test_run_game_wine.py9,tests/test_run_wine_session.py5,tests/test_run_game_wine_safety.py3,tests/test_leonida_launcher.py15, and the newtests/test_play_linux.py1.mainand only the tests changed, each new test fails —test_play_linux.py2,test_run_wine_session.py1,test_check_no_game_data.py1,test_run_game_wine.py1 — and all pass with the scripts.python3 -I scripts/check_no_game_data.py --help,sh scripts/play-linux.sh --helpandbash scripts/run_wine_session.sh --helpprint their usage and exit 0;bash scripts/run_game_wine.sh --help's first line now names--shaders.sh -nonplay-linux.sh,bash -nonrun_wine_session.shandrun_game_wine.sh, andpython3 -I scripts/check_no_game_data.pyon all eight changed files is clean.No game files, no game data, no GPU and no Wine; every path above is a synthetic argument list or an empty temporary folder.
GPUs tested: none needed (tools only).
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md. (n/a: tools help only)