-
Notifications
You must be signed in to change notification settings - Fork 37
add command-line option --version to print Darshan version #1051
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
darshan-util/darshan-parser.c
Outdated
| mask |= c; | ||
| break; | ||
| case OPTION_VERSION: | ||
| printf("%s\n",VERSION); |
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.
I don't know if it makes any difference in practice, but I think PACKAGE_VERSION is the more conventional macro to use here? Otherwise this looks good to me.
|
Please do not merge yet. |
|
Hi, @carns |
carns
left a comment
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.
Looks good to me. I don't see any other utilities that aren't covered. Feel free to merge whenever you are ready.
Add
--versioncommand-line option to all utility programs.This makes Darshan's users easier to query the version number.
An example output is: