X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fmemslap.c;h=ade9e11ef2cd559f303eb2c96116618b20579a27;hb=ab31f9cbda82d44976955edbb821c7247ffd2b2b;hp=0ea9cca34d581cdcf0e05b18ff07859ade99fa76;hpb=c93c9ddbc37c21f33ab152b5121bb69baf437ad1;p=m6w6%2Flibmemcached diff --git a/src/memslap.c b/src/memslap.c index 0ea9cca3..ade9e11e 100644 --- a/src/memslap.c +++ b/src/memslap.c @@ -89,6 +89,7 @@ void options_parse(int argc, char *argv[]) {"debug", no_argument, &opt_verbose, OPT_DEBUG}, {"servers", required_argument, NULL, OPT_SERVERS}, {"flag", no_argument, &opt_displayflag, OPT_FLAG}, + {"default-pairs", required_argument, NULL, OPT_SLAP_DEFAULT_PAIRS}, {0, 0, 0, 0}, }; @@ -120,6 +121,9 @@ void options_parse(int argc, char *argv[]) case OPT_SERVERS: /* --servers or -s */ opt_servers= strdup(optarg); break; + case OPT_SLAP_DEFAULT_PAIRS: + opt_default_pairs= strtol(optarg, (char **)NULL, 10); + break; case '?': /* getopt_long already printed an error message. */ exit(1);