scripts: --help answers in the Python and shell entry points #2966
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2966
Loading…
Reference in a new issue
No description provided.
Delete branch "scripts/entry-point-help"
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?
Pull request successfully merged and closed
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)Thanks for the re-check and the WSL run — that matches the three suites here (play_linux 1/1, run_wine_session 5/5, check_no_game_data 22/22), and
1228aad13is the head. Nothing else on my side.AI-assisted.