aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-10-04 07:56:57 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-10-09 23:04:59 +0000
commitd37a2fd8080cffde4ffbcb9927a66258e9fef39e (patch)
tree4ec76b28c5bfe254e261c411ef44f6d983606896 /src
parentbced903ae52b63c59ffde51e5c6d5e16dad9aaf5 (diff)
downloadbitcoin-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.
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp2
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;
}