Compare commits

...

1 Commits

Author SHA1 Message Date
e07cfc8ec3 [ox/clargs] Make ox::CLArgs::getBool use m_bools member variable
All checks were successful
Build / build (push) Successful in 1m13s
2025-11-18 17:55:25 -06:00

View File

@@ -40,7 +40,7 @@ ClArgs::ClArgs(ox::SpanView<const char*> args) noexcept {
}
bool ClArgs::getBool(ox::StringViewCR arg, bool defaultValue) const noexcept {
auto const [value, err] = m_ints.at(arg);
auto const [value, err] = m_bools.at(arg);
return !err ? *value : defaultValue;
}