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

Function get_one_option

extra/perror.c:96–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95
96static my_bool
97get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
98 char *argument __attribute__((unused)))
99{
100 switch (optid) {
101 case 's':
102 verbose=0;
103 break;
104 case 'V':
105 print_version();
106 exit(0);
107 break;
108 case 'I':
109 case '?':
110 usage();
111 exit(0);
112 break;
113 }
114 return 0;
115}
116
117
118static int get_options(int *argc,char ***argv)

Callers 1

my_handle_optionsFunction · 0.50

Calls 2

print_versionFunction · 0.70
usageFunction · 0.70

Tested by

no test coverage detected