Skip to content

Commit

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

} // version()
Expand Down Expand Up @@ -190,7 +190,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 @@ -620,7 +620,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 8e438e6

Please sign in to comment.