mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 22:33:03 +00:00
Factor out version-printing to usage.cpp (#1870)
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include "usage.hpp"
|
||||
#include "util.hpp"
|
||||
#include "verbosity.hpp"
|
||||
#include "version.hpp"
|
||||
|
||||
#include "gfx/pal_spec.hpp"
|
||||
#include "gfx/process.hpp"
|
||||
@@ -409,7 +408,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':
|
||||
@@ -481,7 +480,7 @@ static void verboseOutputConfig() {
|
||||
|
||||
style_Set(stderr, STYLE_MAGENTA, false);
|
||||
|
||||
fprintf(stderr, "%s %s\n", usage.name.c_str(), get_package_version_string());
|
||||
usage.printVersion(true);
|
||||
|
||||
printVVVVVVerbosity();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user