-void options_parse(int argc, char *argv[]) {
- static struct option long_options[] = {
- {(OPTIONSTRING) "version", no_argument, NULL, OPT_VERSION},
- {(OPTIONSTRING) "help", no_argument, NULL, OPT_HELP},
- {0, 0, 0, 0},
- };
+ auto exit_code = EXIT_SUCCESS;
+ for (auto arg = argp; *arg; ++arg) {
+ auto code = std::stoul(*arg);
+ auto rc = static_cast<memcached_return_t>(code);