Skip to content

Commit 793d74d

Browse files
authored
Add -V as short for --version (#145)
1 parent f75b1aa commit 793d74d

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
@@ -461,7 +461,7 @@ static int config_parse_args(int argc, char *argv[], struct benchmark_config *cf
461461
int c;
462462
char *endptr;
463463
while ((c = getopt_long(argc, argv,
464-
"s:S:p:P:o:x:DRn:c:t:d:a:h", long_options, &option_index)) != -1)
464+
"vs:S:p:P:o:x:DRn:c:t:d:a:h", long_options, &option_index)) != -1)
465465
{
466466
switch (c) {
467467
case 'h':
@@ -874,15 +874,15 @@ void usage() {
874874
" -x, --run-count=NUMBER Number of full-test iterations to perform\n"
875875
" -D, --debug Print debug output\n"
876876
" --client-stats=FILE Produce per-client stats file\n"
877-
" --out-file=FILE Name of output file (default: stdout)\n"
877+
" -o, --out-file=FILE Name of output file (default: stdout)\n"
878878
" --json-out-file=FILE Name of JSON output file, if not set, will not print to json\n"
879879
" --hdr-file-prefix=FILE Prefix of HDR Latency Histogram output files, if not set, will not save latency histogram files\n"
880880
" --show-config Print detailed configuration before running\n"
881881
" --hide-histogram Don't print detailed latency histogram\n"
882882
" --print-percentiles Specify which percentiles info to print on the results table (by default prints percentiles: 50,99,99.9)\n"
883883
" --cluster-mode Run client in cluster mode\n"
884-
" --help Display this help\n"
885-
" --version Display version information\n"
884+
" -h, --help Display this help\n"
885+
" -v, --version Display version information\n"
886886
"\n"
887887
"Test Options:\n"
888888
" -n, --requests=NUMBER Number of total requests per client (default: 10000)\n"

0 commit comments

Comments
 (0)