Cli: refuse an option that has no value #63
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/ThatRecompDev--five-star-recomp!63
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/63/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?
@vaibhavgupta443 on GitHub · 2026-11-26 19:42 UTC · original
fix/cli-option-missing-value→main· +60 −6 · 4 files · 1 commits · closed without mergingWhat
An option typed without its value was dropped, so the command ran without it:
archive carve ... --limit-mbcarved with no limit.audio export ... --codec --decode-xmatook the flag as the codec, so the flag was lost.Change
A missing value, or a next argument starting with
--, now printsfivestar: <option> needs a valueand exits with code 2.This covers the argument reader used by
archive,audio,exe,model,platform,profile,progressandtexture. An unrecognised option at the end of the line, which was ignored before, is now refused too. The separate reader inFiveStar.Cli.Shaderis unchanged.How I checked
dotnet build FiveStar.slnx: 0 warnings, 0 errors.FiveStar.Architecture.Tests: 31 passed.FiveStar.Cli.Tests: 15 passed, 7 skipped.Pull request closed