Show version on run

This commit is contained in:
Deukhoofd 2021-09-07 19:13:10 +02:00
parent f091ff3254
commit 7e1597531d
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 6 additions and 1 deletions

View File

@ -38,4 +38,7 @@ if (WINDOWS)
if (SHARED)
set_target_properties(PokemonScriptTester PROPERTIES SUFFIX ".exe")
endif(SHARED)
endif (WINDOWS)
endif (WINDOWS)
INCLUDE(extern/gitversion/cmake.cmake)
TARGET_GIT_VERSION_INIT(PokemonScriptTester)

View File

@ -9,8 +9,10 @@
#include "Tester/AngelScript/MiscMockFunctions.hpp"
#include "Tester/AngelScript/TestFunctions.hpp"
#include "Tester/TestRunner.hpp"
#include <gitversion/version.h>
int main(int argc, char** argv) {
std::cout << "PokemonScript Tester version: " << version::VERSION_STRING << std::endl;
args::ArgumentParser parser("PkmnLib Script Tester.", "");
args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"});