cli: reject --jobs 0 in translate command #297
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!297
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-297"
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?
@Caasares on GitHub · 2026-11-24 23:21 UTC · original
Caasares:fix/translate-jobs-zero→main· +150 −24 · 2 files · 1 commits · openFixes #249
Summary
victory translate --jobsasOption<std::num::NonZeroUsize>inapps/victory/src/main.rsandapps/victory/src/translate.rs, so--jobs 0is rejected at CLI argument parsing before scanning any files andtranslate::runenforces a non-zero worker count at the API boundary.run_paths/print_summaryinapps/victory/src/translate.rsso translation execution can be verified directly against synthetic DXBC fixtures without game files.victory translate --jobs 0returning aclapValueValidationerror and--jobs 1parsing cleanly (apps/victory/src/main.rs).translate::run/run_pathswith--jobs 1processing a synthetic DXBC container (apps/victory/src/translate.rs).Verification
All checks run inside
wt-vf-249after the final edit (zero game files used; synthetic DXBC fixture built in test memory):cargo clippy --workspace --all-targets --locked -- -D warnings: passed (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed (0 warnings)cargo test --workspace --locked: passed across all workspace test suites (499 passed, 0 failed, 7 pre-existing ignored acrossvictory-formats,victory-gpu, andvictory-shader; includesvictory4 passed andxtaskasset-policy checks 4 passed)cargo fmt --all -- --check: reports pre-existing formatting differences in untouched code across the workspace; all lines added/modified in this PR conform torustfmt.toml.Note: AI-assisted fix; contains no game files or assets.
@kaayzouee on GitHub · 2026-11-25 01:05 UTC · original
Duplicate of #290?
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.