diff --git a/framework/platform/platform.cpp b/framework/platform/platform.cpp index 6bc1d97df..30010b67a 100644 --- a/framework/platform/platform.cpp +++ b/framework/platform/platform.cpp @@ -122,7 +122,7 @@ ExitCode Platform::initialize(const std::vector &plugins_) return ExitCode::Help; } auto optionIt = option_map.find(argumentDeque[0].substr(2)); - if (commandIt == command_map.end()) + if (optionIt == option_map.end()) { LOGE("Option \"{}\" is unknown!", argumentDeque[0]); return ExitCode::Help;