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

Function HelpOp

src/lbcli_main.cc:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int32_t HelpOp(Client*, int32_t argc, std::string* argv, ErrorCode*) {
199 if (argc == 2) {
200 PrintAllCmd();
201 } else if (argc == 3) {
202 PrintCmdHelpInfo(argv[2]);
203 } else {
204 PrintCmdHelpInfo("help");
205 }
206 return 0;
207}
208
209int32_t HelpOp(int32_t argc, char** argv) {
210 std::vector<std::string> argv_svec(argv, argv + argc);

Callers 1

mainFunction · 0.70

Calls 2

PrintAllCmdFunction · 0.70
PrintCmdHelpInfoFunction · 0.70

Tested by

no test coverage detected