Skip to content

Commit

Permalink
fix: 修复flag参数解析异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Dec 9, 2023
1 parent 1936dfe commit 3a04d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int main(int argc, char** argv)
}

bool parse_param(int argc, char** argv, std::unordered_map<std::string, std::string>& options,
std::unordered_map<std::string, bool> flags)
std::unordered_map<std::string, bool>& flags)
{
std::unordered_set<std::string> allowed_param = { "control", "device", "tasks", "init" };
std::unordered_set<std::string> flags_key = { "init" };
Expand Down
2 changes: 1 addition & 1 deletion source/cli/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "tasks.h"

bool parse_param(int argc, char** argv, std::unordered_map<std::string, std::string>& options,
std::unordered_map<std::string, bool> flags);
std::unordered_map<std::string, bool>& flags);

void print_help();

Expand Down

0 comments on commit 3a04d01

Please sign in to comment.