fix: report bad boot arguments instead of crashing or ignoring them #7
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/Freminet--ScarlettX!7
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/7/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?
@AutoComput on GitHub · 2026-11-21 10:15 UTC · original
AutoComput:fix/cli-argument-errors→main· +12 −1 · 1 files · 1 commits · merged 2026-11-22 09:58 UTCTL;DR
scarlettx boot <pkg> --frames abcdies on an uncaughtstd::invalid_argumentfromstd::stoul. Unknown options, and--frames/--rt-dump/--raster-dumpwith no value after them, are silently skipped, so a typo like--in-procesboots in the wrong mode without a word.Both now print an error and return 1. Unknown options also print the usage text.
Tried
--frames abc,--frames 2x,--framesand--bogusby hand. The two CTest boot commands and the README examples only use known options. If #3 lands first,--uncappedsits in the same chain and merges fine.