cli: forward and display title_args in victory run #1031

Closed
github-bot wants to merge 1 commit from gh-pr/1031/head into gh-pr/1031/base
Owner

@⁠Pradhyumna51 on GitHub · 2026-11-24 15:13 UTC · original
Pradhyumna51:fix/run-forward-title-args → main · +50 −3 · 2 files · 1 commits · closed without merging

Summary

victory run defines title_args after -- in Clap, but discarded it with title_args: _ in main().

This change wires the CLI plumbing:

  • Parses title arguments after -- into itle_args.
  • Forwards title_args into
    un::run() and prints them in the launch banner when present.
  • Updates the non-Windows
    un() fallback signature.
  • Adds unit tests in pps/victory verifying that arguments after -- parse correctly.

Guest delivery via GetCommandLine or PEB hooks is outside the scope of this PR and left for follow-up work.

**@⁠Pradhyumna51** on GitHub · 2026-11-24 15:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/1031) `Pradhyumna51:fix/run-forward-title-args` → `main` · +50 −3 · 2 files · 1 commits · closed without merging ### Summary victory run defines title_args after -- in Clap, but discarded it with title_args: _ in main(). This change wires the CLI plumbing: * Parses title arguments after -- into itle_args. * Forwards title_args into un::run() and prints them in the launch banner when present. * Updates the non-Windows un() fallback signature. * Adds unit tests in pps/victory verifying that arguments after -- parse correctly. Guest delivery via GetCommandLine or PEB hooks is outside the scope of this PR and left for follow-up work.
'victory run' defines title_args after '--' in clap for passing arguments to the title image, but discarded it with 'title_args: _' in main().

Forward title_args into run::run(), display them in the console banner when non-empty, update the non-Windows stub, and add unit tests in apps/victory asserting that title_args after '--' are parsed and preserved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:17:40 +00:00
github-bot closed this pull request 2026-11-26 04:17:40 +00:00
Author
Owner

@⁠Pradhyumna51 on GitHub · 2026-11-24 15:39 UTC · original

Thanks for testing on Windows.

This change is just the CLI wiring and banner output. Passing arguments to the guest process via GetCommandLine or PEB patching requires loader changes, so I left that for a separate PR.

I updated the PR description to clarify the scope.

**@⁠Pradhyumna51** on GitHub · 2026-11-24 15:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/1031#issuecomment-7136394313) Thanks for testing on Windows. This change is just the CLI wiring and banner output. Passing arguments to the guest process via GetCommandLine or PEB patching requires loader changes, so I left that for a separate PR. I updated the PR description to clarify the scope.
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 15:40 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 19b4cc4: cargo test -p victory passes, 3 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 15:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1031#issuecomment-7136412316) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 19b4cc4: `cargo test -p victory` passes, 3 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:30 UTC · original

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #513. Same as #513 (prints title_args, which the title already reads from the process command line) plus two tests of clap's own parsing.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/1031#issuecomment-7148583390) Automated triage for the maintainers. Closing because another open pull request covers the same change. See #513. Same as #513 (prints `title_args`, which the title already reads from the process command line) plus two tests of clap's own parsing. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1031
No description provided.