diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-10-04 07:56:57 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-10-09 23:04:59 +0000 |
commit | d37a2fd8080cffde4ffbcb9927a66258e9fef39e (patch) | |
tree | 4ec76b28c5bfe254e261c411ef44f6d983606896 | |
parent | bced903ae52b63c59ffde51e5c6d5e16dad9aaf5 (diff) | |
download | bitcoin-d37a2fd8080cffde4ffbcb9927a66258e9fef39e.tar.xz |
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.
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index c6712fa715..5faa604394 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -232,7 +232,7 @@ bool AppInit2(int argc, char* argv[]) #else // Remove tabs strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end()); - fprintf(stderr, "%s", strUsage.c_str()); + fprintf(stdout, "%s", strUsage.c_str()); #endif return false; } |