diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-10-04 07:56:57 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-10-04 07:56:57 +0200 |
| commit | bb353618f16d1faf29de2f1fe4ad191122c90c27 (patch) | |
| tree | ce4043604bf5db205d9c2137657f212fedb79473 /src/qt/guiutil.cpp | |
| parent | Merge branch '2012_09_fixwformat' of github.com:laanwj/bitcoin (diff) | |
| download | discoin-bb353618f16d1faf29de2f1fe4ad191122c90c27.tar.xz discoin-bb353618f16d1faf29de2f1fe4ad191122c90c27.zip | |
Send --help message to stdout i.s.o stderr
This allows fun stuff such as `bitcoin --help | less`, and more
easy piping to files.
Looking at other tools such as bash, gcc, they all send their help
text to stdout.
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index d2d7716db..ff70ca24a 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -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() |