Skip to content

Commit 7100c42

Browse files
committed
Merge pull request RedisLabs#11 from NaaS/minor
small improvements to '--help'
2 parents 7f1e943 + 01c67a8 commit 7100c42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

memtier_benchmark.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static int config_parse_args(int argc, char *argv[], struct benchmark_config *cf
563563
}
564564

565565
void usage() {
566-
fprintf(stderr, "Usage: memtier_benchmark [options]\n"
566+
fprintf(stdout, "Usage: memtier_benchmark [options]\n"
567567
"A memcache/redis NoSQL traffic generator and performance benchmarking tool.\n"
568568
"\n"
569569
"Connection and General Options:\n"
@@ -579,6 +579,8 @@ void usage() {
579579
" --out-file=FILE Name of output file (default: stdout)\n"
580580
" --show-config Print detailed configuration before running\n"
581581
" --hide-histogram Don't print detailed latency histogram\n"
582+
" --help Display this help\n"
583+
" --version Display version information\n"
582584
"\n"
583585
"Test Options:\n"
584586
" -n, --requests=NUMBER Number of total requests per client (default: 10000)\n"
@@ -594,7 +596,7 @@ void usage() {
594596
" on the protocol can be PASSWORD or USER:PASSWORD.\n"
595597
" --select-db=DB DB number to select, when testing a redis server\n"
596598
" --distinct-client-seed Use a different random seed for each client\n"
597-
" --randomize random seed based on timestamp (defalut is constant value)\n"
599+
" --randomize random seed based on timestamp (default is constant value)\n"
598600
"\n"
599601
"Object Options:\n"
600602
" -d --data-size=SIZE Object data size (default: 32)\n"
@@ -629,8 +631,6 @@ void usage() {
629631
" (default is key range / 6)\n"
630632
" --key-median The median point used in the Gaussian distribution\n"
631633
" (default is the center of the key range)\n"
632-
" --help Display this help\n"
633-
" --version Display version information\n"
634634
"\n"
635635
);
636636

0 commit comments

Comments
 (0)