Skip to content

Commit

Permalink
fix: 修复参数错误时仍然继续执行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Dec 9, 2023
1 parent bb74408 commit 1936dfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ bool parse_param(int argc, char** argv, std::unordered_map<std::string, std::str

if (allowed_param.count(arg_name) == 0) {
std::cerr << "Unknown argument: " << arg << std::endl;
return false;
}

if (flags_key.count(arg_name)) {
Expand Down

0 comments on commit 1936dfe

Please sign in to comment.