Make CLArgs::getBool use underlying m_bools member variable
All checks were successful
Build / build (push) Successful in 1m9s

This commit is contained in:
2025-09-11 18:42:19 -05:00
parent 671fa54f6f
commit e009f68fbe

View File

@@ -40,7 +40,7 @@ ClArgs::ClArgs(ox::SpanView<const char*> args) noexcept {
} }
bool ClArgs::getBool(ox::StringViewCR arg, bool defaultValue) const 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; return !err ? *value : defaultValue;
} }