runtime: the --first-run-ui usage line lists the options the mode takes (DOC-FIRST-RUN-UI-USAGE) #1883

Closed
kurrutako wants to merge 1 commit from upstream-pr/1883 into main
kurrutako commented 2026-11-25 14:14:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-11-25T14:14:46Z.


DOC-FIRST-RUN-UI-USAGE, claimed in #1608.

What

gta6rt's usage line for --first-run-ui now lists the options the mode already takes: --mods, --archetype-lookup, --view-mode-getter, --trace-d3d12 and game arguments after --, the same set as --run. docs/first_run_ui.md says so in one sentence and points --trace-d3d12 at tools/boot_trace.py --d3d12.

Why

--first-run-ui is parsed by the same loop as --run (runtime/src/main.cpp, wmain) and becomes a run (run = run || first_run_ui), so every --run option applies. The usage line showed only --game-dir, --overlay and --trace, which reads as if the D3D12 trace were not available in this mode. On my RTX 5070 boots (#1537) I left it out for that reason, and boot_trace.py --d3d12 then had no input.

Checked

With the runtime built from main 71a769d7d (MSVC 2022, RelWithDebInfo), on Windows 11:

  • gta6rt --first-run-ui nope.exe --bogus prints the usage text (unknown option, as before).
  • gta6rt --first-run-ui nope.exe --trace-d3d12 --mods m --overlay o -- -x passes the parser and stops at error: cannot open ...nope.exe, so all of those options are accepted today.

No behaviour change: only the usage text and the doc. python -I scripts/check_no_game_data.py passes.

AI-assisted.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5493047294 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1883). Originally posted by [kurrutako](https://github.com/kurrutako) on 2026-11-25T14:14:46Z. --- DOC-FIRST-RUN-UI-USAGE, claimed in #1608. ## What `gta6rt`'s usage line for `--first-run-ui` now lists the options the mode already takes: `--mods`, `--archetype-lookup`, `--view-mode-getter`, `--trace-d3d12` and game arguments after `--`, the same set as `--run`. `docs/first_run_ui.md` says so in one sentence and points `--trace-d3d12` at `tools/boot_trace.py --d3d12`. ## Why `--first-run-ui` is parsed by the same loop as `--run` (`runtime/src/main.cpp`, `wmain`) and becomes a run (`run = run || first_run_ui`), so every `--run` option applies. The usage line showed only `--game-dir`, `--overlay` and `--trace`, which reads as if the D3D12 trace were not available in this mode. On my RTX 5070 boots (#1537) I left it out for that reason, and `boot_trace.py --d3d12` then had no input. ## Checked With the runtime built from `main` 71a769d7d (MSVC 2022, RelWithDebInfo), on Windows 11: - `gta6rt --first-run-ui nope.exe --bogus` prints the usage text (unknown option, as before). - `gta6rt --first-run-ui nope.exe --trace-d3d12 --mods m --overlay o -- -x` passes the parser and stops at `error: cannot open ...nope.exe`, so all of those options are accepted today. No behaviour change: only the usage text and the doc. `python -I scripts/check_no_game_data.py` passes. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kurrutako commented 2026-11-25 20:30:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-11-25T20:30:07Z.


Closing for now under the new rule of one open PR until two are merged; I will reopen it later. The branch stays on my fork.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7173763847 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1883#issuecomment-7173763847). Originally posted by [kurrutako](https://github.com/kurrutako) on 2026-11-25T20:30:07Z. --- Closing for now under the new rule of one open PR until two are merged; I will reopen it later. The branch stays on my fork. AI-assisted (Claude Code, Claude Opus 5.5).

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
ProjectLeonida/mandy!1883
No description provided.