Compare commits

...

1 Commits

Author SHA1 Message Date
e009f68fbe Make CLArgs::getBool use underlying m_bools member variable
All checks were successful
Build / build (push) Successful in 1m9s
2025-09-11 18:42:19 -05: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 { 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;
} }