X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fmemrm.c;h=5b6474b0e4a6d03288db1f85544ed90d3a681497;hb=5ec04ab8c3a401ca0d73abe77a3e4d78f47eb1f6;hp=b297379f3c231fddb599fc1290afb29a4da24567;hpb=6d0bec130624e22e695dbf4038fbeed9e1c26c60;p=m6w6%2Flibmemcached diff --git a/src/memrm.c b/src/memrm.c index b297379f..5b6474b0 100644 --- a/src/memrm.c +++ b/src/memrm.c @@ -30,20 +30,20 @@ int main(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: break; - case OPT_VERSION: /* --version */ + case OPT_VERSION: /* --version or -V */ printf("memcache tools, memrm, v1.0\n"); exit(0); break; - case OPT_HELP: /* --help */ + case OPT_HELP: /* --help or -h */ printf("useful help messages go here\n"); exit(0); break; - case OPT_SERVERS: /* --servers */ + case OPT_SERVERS: /* --servers or -s */ opt_servers = optarg; break; case OPT_EXPIRE: /* --expire */