Skip to content

Conversation

@wkliao
Copy link
Collaborator

@wkliao wkliao commented Jul 11, 2025

Add --version command-line option to all utility programs.
This makes Darshan's users easier to query the version number.
An example output is:

% darshan-parser --version
3.4.7

@wkliao wkliao added the Work in Progress Still under development. When done this label can be removed. label Jul 11, 2025
mask |= c;
break;
case OPTION_VERSION:
printf("%s\n",VERSION);
Copy link

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.

carns
carns previously approved these changes Jul 11, 2025
@wkliao
Copy link
Collaborator Author

wkliao commented Jul 11, 2025

Please do not merge yet.
I will continue the same changes for other utility programs.
Once done, I will clear the label.

@wkliao wkliao removed the Work in Progress Still under development. When done this label can be removed. label Jul 11, 2025
@wkliao
Copy link
Collaborator Author

wkliao commented Jul 11, 2025

Hi, @carns
I added the same changes to a few other utility programs.
Please let me know if I miss any.

Copy link

@carns carns left a 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.

@wkliao wkliao merged commit b781182 into darshan-hpc:main Jul 12, 2025
19 checks passed
@wkliao wkliao deleted the add_version branch July 12, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants