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

Function PrintCmdHelpInfo

src/lbcli_main.cc:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87static void PrintCmdHelpInfo(const char* msg) {
88 if (msg == NULL) {
89 return;
90 }
91 int count = sizeof(builtin_cmd_list) / sizeof(char*);
92 for (int i = 0; i < count; i += 2) {
93 if (strncmp(msg, builtin_cmd_list[i], 32) == 0) {
94 std::cout << builtin_cmd_list[i + 1] << std::endl;
95 return;
96 }
97 }
98}
99
100static void PrintCmdHelpInfo(const std::string& msg) { PrintCmdHelpInfo(msg.c_str()); }
101

Callers 2

SafemodeOpFunction · 0.70
HelpOpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected