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

Function get_options

extra/perror.c:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117
118static int get_options(int *argc,char ***argv)
119{
120 int ho_error;
121
122 if ((ho_error=handle_options(argc, argv, my_long_options, get_one_option)))
123 exit(ho_error);
124
125 if (!*argc)
126 {
127 usage();
128 return 1;
129 }
130 return 0;
131} /* get_options */
132
133
134static const char *get_ha_error_msg(int code)

Callers 1

mainFunction · 0.70

Calls 2

handle_optionsFunction · 0.85
usageFunction · 0.70

Tested by

no test coverage detected