MCPcopy Create free account
hub / github.com/baidu/tera / ParseCommand

Function ParseCommand

src/admincli.cc:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool ParseCommand(int argc, char** arg_list, std::vector<std::string>* parsed_arg_list) {
248 for (int i = 0; i < argc; i++) {
249 std::string parsed_arg = arg_list[i];
250 if (FLAGS_readable && !ParseDebugString(arg_list[i], &parsed_arg)) {
251 std::cout << "invalid debug format of argument: " << arg_list[i] << std::endl;
252 return false;
253 }
254 parsed_arg_list->push_back(parsed_arg);
255 }
256 return true;
257}
258
259static void PrintCmdHelpInfo(const std::string& msg) { PrintCmdHelpInfo(msg.c_str()); }
260

Callers 1

ExecuteCommandFunction · 0.70

Calls 2

ParseDebugStringFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected