X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fmemcp.c;h=90d3fb375b574f2a5abb690e683085ef44753f0a;hb=5ec04ab8c3a401ca0d73abe77a3e4d78f47eb1f6;hp=88cbc351372588341757f1caecd46a4127ba7845;hpb=6d0bec130624e22e695dbf4038fbeed9e1c26c60;p=awesomized%2Flibmemcached diff --git a/src/memcp.c b/src/memcp.c index 88cbc351..90d3fb37 100644 --- a/src/memcp.c +++ b/src/memcp.c @@ -102,21 +102,20 @@ void options_parse(int argc, char *argv[]) while (1) { - option_rv= getopt_long(argc, argv, "", long_options, &option_index); + option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index); if (option_rv == -1) break; switch (option_rv) { case 0: - if (long_options[option_index].name) break; - case OPT_VERSION: /* --version */ + case OPT_VERSION: /* --version or -V */ printf("memcache tools, memcp, v1.0\n"); exit(0); - case OPT_HELP: /* --help */ + case OPT_HELP: /* --help or -h */ printf("useful help messages go here\n"); exit(0); - case OPT_SERVERS: /* --servers */ + case OPT_SERVERS: /* --servers or -s */ opt_servers= optarg; break; case OPT_FLAG: /* --flag */