#7786 Get version from command line

This commit is contained in:
Magne Sjaastad
2021-06-16 10:02:36 +02:00
parent da166bd7b9
commit d7113a528c
3 changed files with 12 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ RiaApplication* createApplication( int& argc, char* argv[] )
{
for ( int i = 1; i < argc; ++i )
{
if ( !qstrcmp( argv[i], "--console" ) || !qstrcmp( argv[i], "--unittest" ) )
if ( !qstrcmp( argv[i], "--console" ) || !qstrcmp( argv[i], "--unittest" ) || !qstrcmp( argv[i], "--version" ) )
{
#ifdef ENABLE_GRPC
return new RiaGrpcConsoleApplication( argc, argv );