Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b58fd28

Browse files
committedJun 14, 2019
output usage() and version() to stdout
1 parent 017e4fc commit b58fd28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void version( )
121121
"QGIS version",
122122
MB_OK );
123123
#else
124-
std::cerr << msg.toStdString();
124+
std::cout << msg.toStdString();
125125
#endif
126126

127127
} // version()
@@ -185,7 +185,7 @@ void usage( const QString &appName )
185185
"QGIS command line options",
186186
MB_OK );
187187
#else
188-
std::cerr << msg.join( QString() ).toLocal8Bit().constData();
188+
std::cout << msg.join( QString() ).toLocal8Bit().constData();
189189
#endif
190190

191191
} // usage()
@@ -617,7 +617,7 @@ int main( int argc, char *argv[] )
617617
if ( arg == QLatin1String( "--help" ) || arg == QLatin1String( "-?" ) )
618618
{
619619
usage( args[0] );
620-
return 2;
620+
return EXIT_SUCCESS;
621621
}
622622
else if ( arg == QLatin1String( "--version" ) || arg == QLatin1String( "-v" ) )
623623
{

0 commit comments

Comments
 (0)
Please sign in to comment.