-
Notifications
You must be signed in to change notification settings - Fork 237
Add -V as short for --version #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@hbina why not just to fix the existing -v option? |
|
Hmm well you are right, I could have just fixed the old 'v'. IDK which is preferred, but you can edit this commit if you prefer that. |
5f6d12e to
bf78ce2
Compare
|
I have applied your suggestion and fixed help string to also display short name for `--help. The diff is a lot smaller now. |
memtier_benchmark.cpp
Outdated
| " -D, --debug Print debug output\n" | ||
| " --client-stats=FILE Produce per-client stats file\n" | ||
| " --out-file=FILE Name of output file (default: stdout)\n" | ||
| " -o --out-file=FILE Name of output file (default: stdout)\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add ","
memtier_benchmark.cpp
Outdated
| " --cluster-mode Run client in cluster mode\n" | ||
| " --help Display this help\n" | ||
| " --version Display version information\n" | ||
| " -h --help Display this help\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add ","
Also updated help string. Related issue: redis#139 Signed-off-by: Hanif Bin Ariffin <[email protected]>
bf78ce2 to
718df87
Compare
|
thank you @hbina for the PR... merged |
Related issue #139
TIL about Linux's optarg.