VersionNumber parsing

This commit is contained in:
Nav
2021-10-19 23:00:54 +01:00
parent 10b80e24ba
commit 8433a87fbf
9 changed files with 116 additions and 16 deletions

View File

@@ -207,7 +207,7 @@ int Application::presentHelpText() {
throw Exception("Failed to open help file - please report this issue at https://bloom.oscillate.io/report-issue");
}
std::cout << "Bloom v" << Application::VERSION_STR << "\n";
std::cout << "Bloom v" << Application::VERSION.toString() << "\n";
std::cout << QTextStream(&helpFile).readAll().toUtf8().constData() << "\n";
return EXIT_SUCCESS;
}
@@ -215,7 +215,7 @@ int Application::presentHelpText() {
int Application::presentVersionText() {
Logger::silence();
std::cout << "Bloom v" << Application::VERSION_STR << "\n";
std::cout << "Bloom v" << Application::VERSION.toString() << "\n";
#ifdef BLOOM_DEBUG_BUILD
std::cout << "DEBUG BUILD - Compilation timestamp: " << __DATE__ << " " << __TIME__ << "\n";