Skip to content

Commit 5bfa6ae

Browse files
authored
Fix check for unknown command line option. (#1445)
1 parent b279952 commit 5bfa6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/platform/platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ExitCode Platform::initialize(const std::vector<Plugin *> &plugins_)
122122
return ExitCode::Help;
123123
}
124124
auto optionIt = option_map.find(argumentDeque[0].substr(2));
125-
if (commandIt == command_map.end())
125+
if (optionIt == option_map.end())
126126
{
127127
LOGE("Option \"{}\" is unknown!", argumentDeque[0]);
128128
return ExitCode::Help;

0 commit comments

Comments
 (0)