MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_one_option

Function get_one_option

extra/resolve_stack_dump.c:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103static my_bool
104get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
105 char *argument __attribute__((unused)))
106{
107 switch(optid) {
108 case 'V':
109 print_version();
110 exit(0);
111 case '?':
112 usage();
113 exit(0);
114 }
115 return 0;
116}
117
118
119static int parse_args(int argc, char **argv)

Callers

nothing calls this directly

Calls 2

print_versionFunction · 0.70
usageFunction · 0.70

Tested by

no test coverage detected