Skip to content

Commit

Permalink
Merge pull request #1906 from laanwj/2012_10_help_stdout
Browse files Browse the repository at this point in the history
Send --help message to stdout i.s.o stderr
  • Loading branch information
laanwj committed Oct 5, 2012
2 parents a6be58d + bb35361 commit ee0b648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool AppInit(int argc, char* argv[])

strUsage += "\n" + HelpMessage();

fprintf(stderr, "%s", strUsage.c_str());
fprintf(stdout, "%s", strUsage.c_str());
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ void HelpMessageBox::printToConsole()
{
// On other operating systems, the expected action is to print the message to the console.
QString strUsage = header + "\n" + coreOptions + "\n" + uiOptions;
fprintf(stderr, "%s", strUsage.toStdString().c_str());
fprintf(stdout, "%s", strUsage.toStdString().c_str());
}

void HelpMessageBox::showOrPrint()
Expand Down

0 comments on commit ee0b648

Please sign in to comment.