Browse Source

Merge pull request #1906 from laanwj/2012_10_help_stdout

Send --help message to stdout i.s.o stderr
0.8
Wladimir J. van der Laan 12 years ago
parent
commit
ee0b648536
  1. 2
      src/init.cpp
  2. 2
      src/qt/guiutil.cpp

2
src/init.cpp

@ -144,7 +144,7 @@ bool AppInit(int argc, char* argv[]) @@ -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;
}

2
src/qt/guiutil.cpp

@ -439,7 +439,7 @@ void HelpMessageBox::printToConsole() @@ -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()

Loading…
Cancel
Save