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

Function ParseCommand

src/teracli_main.cc:3338–3348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3336}
3337
3338bool ParseCommand(int argc, char** arg_list, std::vector<std::string>* parsed_arg_list) {
3339 for (int i = 0; i < argc; i++) {
3340 std::string parsed_arg = arg_list[i];
3341 if (FLAGS_readable && !ParseDebugString(arg_list[i], &parsed_arg)) {
3342 std::cout << "invalid debug format of argument: " << arg_list[i] << std::endl;
3343 return false;
3344 }
3345 parsed_arg_list->push_back(parsed_arg);
3346 }
3347 return true;
3348}
3349
3350int32_t InitDfsClient() {
3351 if (g_dfs != NULL) {

Callers 1

ExecuteCommandFunction · 0.70

Calls 2

ParseDebugStringFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected