Commit ef45589d authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX] Make "--version" available for scripted OW version

parent ced044a0
......@@ -122,7 +122,12 @@ int main( int argc, char** argv )
po::notify( optionsMap );
// print usage information if command line asks for help.
if( optionsMap.count( "help" ) || ( optionsMap.count( "interp" ) == 0 && optionsMap.count( "file" ) == 0 ) )
if( optionsMap.count( "version" ) )
{
printVersion();
return 0;
}
else if( optionsMap.count( "help" ) || ( optionsMap.count( "interp" ) == 0 && optionsMap.count( "file" ) == 0 ) )
{
// NOTE: if you modify this, check that help2man still works properly! (http://www.gnu.org/software/help2man) But be careful. There need
// to be several manual changes to be done in the manual after help2man has done its job.
......@@ -140,11 +145,6 @@ int main( int argc, char** argv )
<< std::endl;
return 0;
}
else if( optionsMap.count( "version" ) )
{
printVersion();
return 0;
}
printVersion();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment