App: forward title command-line arguments to run command #513
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!513
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/513/head"
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?
@pushkarreddyy on GitHub · 2026-11-24 04:21 UTC · original
pushkarreddyy:feat/app-forward-title-args→main· +8 −3 · 2 files · 2 commits · closed without mergingProblem
apps/victory/src/main.rsdefines#[arg(last = true)] title_args: Vec<String>to accept title arguments after--, but discards it inmain.rsline 162 withtitle_args: _. Consequently,run::runnever receives the arguments.Fix
Pass
&title_argsintorun::runso that title arguments supplied after--are retained and logged during execution.No game files used.
@pushkarreddyy on GitHub · 2026-11-24 04:50 UTC · original
### Technical Verification & Implementation Details
Context & Root Cause
In
apps/victory/src/main.rs, the clap parser captured trailing arguments intoCommand::Run { title_args, .. }. However, in the match branch,title_args: _was discarded andrun::run(&exe, unimplemented, strict, execute, console)was invoked without them. Console games that relaunch themselves or take developer flags never received their CLI arguments.Changes & Diff
run::runsignature to taketitle_args: &[String].victory_hle::runtime::set_command_line(...).Git Log Line & Verification
ext 0c2d85d App: forward title command-line arguments to run command apps/victory/src/main.rs | 4 ++-- apps/victory/src/run.rs | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-)cargo xtask policy(Rule #1 compliance, zero game assets).rustfmt --edition 2024.@pushkarreddyy on GitHub · 2026-11-24 06:24 UTC · original
### Call for Testing & Maintainer Review
Community verification on CLI commands (
victory run,victory census,victory config) and cross-platform configuration on Windows/Linux is welcome!cargo xtask policypassing).@Marvisak: Ready for maintainer review and merge when convenient!
@pushkarreddyy on GitHub · 2026-11-24 07:30 UTC · original
Thanks for catching the missing dependency @mercuryVM!
I've pushed an update (
c3f374f) replacing thetracing::info!call withprintln!("title args {}", title_args.join(" ")), matching the rest of the diagnostic output inrun.rswithout requiring external dependencies. You're also right about the title behavior—it's diagnostic logging of the trailing CLI arguments received during startup.@pushkarreddyy on GitHub · 2026-11-24 13:02 UTC · original
@Marvisak: PR #513 is approved by @mercuryVM (verified passing workspace tests on Windows 11 MSVC). Whenever you have a moment, this is ready to merge!
@Marvisak on GitHub · 2026-11-25 00:03 UTC · original
Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today.
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