options: store Hex values passed on the command line (#944)

Ye olde classic case of "review this code" and the robot saying "this is
also broken".

Only two hex options and both kinda rare so makes sense they've not been
seen as a bug before. Looks like it's been there some time.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WillandClaude Opus 5.5 authored and GitHub committed 2026-12-06 01:44:48 -08:00
1 parent 69585ac43d
commit c371a45b91
1 file changed
+1
+1
View File
@@ -3582,6 +3582,7 @@ std::unique_ptr<std::vector<Option>> launcher::parse_options(int argc, char *arg
// validate it is an integer // validate it is an integer
try { try {
auto _ = std::stoull(argv[i], nullptr, 16); auto _ = std::stoull(argv[i], nullptr, 16);
option.value_add(argv[i]);
} catch (const std::exception &ex) { } catch (const std::exception &ex) {
log_fatal("options", "parameter for -{} is not a hex number: {}", alias, argv[i]); log_fatal("options", "parameter for -{} is not a hex number: {}", alias, argv[i]);
} }