CLI: translate --jobs 0 accepts the input and reports zero containers #249
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#249
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Bennet0k on GitHub · 2026-11-24 23:00 UTC · original
Source · Source
The argument type accepts zero and the code uses it directly as the worker count. For
victory translate --jobs 0 <file-with-a-shader>, the per-file worker range is empty even when shader sources were found, so the command reaches the summary with zero work instead of reporting invalid input. Verified from the argument and worker code. The Windows CLI was not run for this check.Proposed fix. Parse the option as
NonZeroUsizeor reject zero before scanning. Test that zero exits with an argument error and one processes a synthetic shader fixture.Found in an AI-assisted audit of
2119b0e.