#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

@@ -142,6 +142,7 @@ bool RiaArgumentParser::parseArguments( cvf::ProgramOptions* progOpt )
#endif
progOpt->registerOption( "generate", "[<outputFile>]", "Generate code or documentation", cvf::ProgramOptions::SINGLE_VALUE );
progOpt->registerOption( "ignoreArgs", "", "System command. Ignore all arguments. Mostly for testing purposes" );
progOpt->registerOption( "version", "", "Display the application version string" );
progOpt->setOptionPrefix( cvf::ProgramOptions::DOUBLE_DASH );