diff --git a/src/headers/arguments.hpp b/src/headers/arguments.hpp index 9ef002b..0cef115 100644 --- a/src/headers/arguments.hpp +++ b/src/headers/arguments.hpp @@ -37,11 +37,10 @@ public: protected: bool is(string_view str) override { if (str.find_last_of('=') != string_view::npos && !str.empty()) { - auto isValid = [&]() -> bool { return str.starts_with("--" + longVersion + '='); }; - if (values.empty()) return isValid(); + if (values.empty()) isValid: return str.starts_with("--" + longVersion + '='); for (const auto& value : values) { if (str.ends_with(value.substr(1, value.size()))) { - return isValid(); + goto isValid; } } }