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

Function ParseCommand

src/lbcli_main.cc:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214bool ParseCommand(int argc, char** arg_list, std::vector<std::string>* parsed_arg_list) {
215 for (int i = 0; i < argc; i++) {
216 std::string parsed_arg = arg_list[i];
217 if (FLAGS_readable && !ParseDebugString(arg_list[i], &parsed_arg)) {
218 std::cout << "invalid debug format of argument: " << arg_list[i] << std::endl;
219 return false;
220 }
221 parsed_arg_list->push_back(parsed_arg);
222 }
223 return true;
224}
225
226static void InitializeCommandTable() {
227 CommandTable& command_table = GetCommandTable();

Callers 1

ExecuteCommandFunction · 0.70

Calls 2

ParseDebugStringFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected