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

Function PrintCmdHelpInfo

src/admincli.cc:234–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232};
233
234static void PrintCmdHelpInfo(const char* msg) {
235 if (msg == NULL) {
236 return;
237 }
238 int count = sizeof(builtin_cmd_list) / sizeof(char*);
239 for (int i = 0; i < count; i += 2) {
240 if (strncmp(msg, builtin_cmd_list[i], 32) == 0) {
241 std::cout << builtin_cmd_list[i + 1] << std::endl;
242 return;
243 }
244 }
245}
246
247bool ParseCommand(int argc, char** arg_list, std::vector<std::string>* parsed_arg_list) {
248 for (int i = 0; i < argc; i++) {

Callers 15

HelpOpFunction · 0.70
MetaDiffOpFunction · 0.70
MetaPutOpFunction · 0.70
MetaDeleteOpFunction · 0.70
MetaModifyOpFunction · 0.70
MetaGetOpFunction · 0.70
MetaShowOpFunction · 0.70
MetaBackUpOpFunction · 0.70
MetaHealthCheckOpFunction · 0.70
MetaConvOpFunction · 0.70
UgiOpFunction · 0.70
RoleOpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected