MCPcopy Create free account
hub / github.com/Tencent/phxqueue / ShowUsage

Function ShowUsage

phxqueue_phxrpc/app/lock/lock_tool_main.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34void ShowUsage(const char *program) {
35 printf("\nUsage: %s [-c <config>] [-f <func>] [-v]\n", program);
36
37 LockTool::Name2Func_t *name2func{LockTool::GetName2Func()};
38
39 for (int i{0}; ; ++i) {
40 LockTool::Name2Func_t *iter = &(name2func[i]);
41
42 if( NULL == iter->name ) break;
43
44 printf(" -f %s %s\n", iter->name, iter->usage);
45 }
46 printf("\n");
47 exit(0);
48}
49
50int main(int argc, char *argv[]) {
51 const char *func{nullptr};

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected