Factor out version-printing to usage.cpp (#1870)

This commit is contained in:
Rangi
2025-12-05 23:04:49 -05:00
committed by GitHub
parent c8161be23a
commit 33475e2c36
6 changed files with 14 additions and 11 deletions
+1 -2
View File
@@ -19,7 +19,6 @@
#include "style.hpp"
#include "usage.hpp"
#include "util.hpp"
#include "version.hpp"
#include "fix/fix.hpp"
#include "fix/mbc.hpp"
@@ -252,7 +251,7 @@ static void parseArg(int ch, char *arg) {
// LCOV_EXCL_START
case 'V':
printf("%s %s\n", usage.name.c_str(), get_package_version_string());
usage.printVersion(false);
exit(0);
case 'v':