Reuse the usage.name for printing version info

This commit is contained in:
Rangi
2025-11-18 22:32:45 -05:00
parent a3d3e1525a
commit 1eb4eb3339
4 changed files with 7 additions and 7 deletions

View File

@@ -283,7 +283,7 @@ static void parseArg(int ch, char *arg) {
// LCOV_EXCL_START
case 'V':
printf("rgblink %s\n", get_package_version_string());
printf("%s %s\n", usage.name.c_str(), get_package_version_string());
exit(0);
case 'v':
@@ -330,7 +330,7 @@ static void verboseOutputConfig() {
style_Set(stderr, STYLE_MAGENTA, false);
fprintf(stderr, "rgblink %s\n", get_package_version_string());
fprintf(stderr, "%s %s\n", usage.name.c_str(), get_package_version_string());
printVVVVVVerbosity();