Skip to content

Commit

Permalink
output usage() and version() to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed Jun 14, 2019
1 parent 017e4fc commit b58fd28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/main.cpp
Expand Up @@ -121,7 +121,7 @@ void version( )
"QGIS version",
MB_OK );
#else
std::cerr << msg.toStdString();
std::cout << msg.toStdString();
#endif

} // version()
Expand Down Expand Up @@ -185,7 +185,7 @@ void usage( const QString &appName )
"QGIS command line options",
MB_OK );
#else
std::cerr << msg.join( QString() ).toLocal8Bit().constData();
std::cout << msg.join( QString() ).toLocal8Bit().constData();
#endif

} // usage()
Expand Down Expand Up @@ -617,7 +617,7 @@ int main( int argc, char *argv[] )
if ( arg == QLatin1String( "--help" ) || arg == QLatin1String( "-?" ) )
{
usage( args[0] );
return 2;
return EXIT_SUCCESS;
}
else if ( arg == QLatin1String( "--version" ) || arg == QLatin1String( "-v" ) )
{
Expand Down

0 comments on commit b58fd28

Please sign in to comment.