mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show git SHA for command line parameter --version
This commit is contained in:
@@ -131,6 +131,7 @@ RiaApplication::ApplicationStatus RiaConsoleApplication::handleArguments( gsl::n
|
||||
if ( progOpt->option( "version" ) )
|
||||
{
|
||||
QString text = QString( STRPRODUCTVER ) + "\n";
|
||||
text += "SHA " + QString( RESINSIGHT_GIT_HASH ) + "\n";
|
||||
|
||||
showFormattedTextInMessageBoxOrConsole( text );
|
||||
|
||||
|
||||
@@ -463,6 +463,16 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
|
||||
return RiaApplication::ApplicationStatus::EXIT_COMPLETED;
|
||||
}
|
||||
|
||||
if ( progOpt->option( "version" ) )
|
||||
{
|
||||
QString text = QString( STRPRODUCTVER ) + "\n";
|
||||
text += "SHA " + QString( RESINSIGHT_GIT_HASH ) + "\n";
|
||||
|
||||
showFormattedTextInMessageBoxOrConsole( text );
|
||||
|
||||
return RiaApplication::ApplicationStatus::EXIT_COMPLETED;
|
||||
}
|
||||
|
||||
// Code generation
|
||||
// -----------------
|
||||
if ( cvf::Option o = progOpt->option( "generate" ) )
|
||||
|
||||
Reference in New Issue
Block a user