aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2012-10-04 07:56:57 +0200
committerWladimir J. van der Laan <[email protected]>2012-10-04 07:56:57 +0200
commitbb353618f16d1faf29de2f1fe4ad191122c90c27 (patch)
treece4043604bf5db205d9c2137657f212fedb79473 /src/init.cpp
parentMerge branch '2012_09_fixwformat' of github.com:laanwj/bitcoin (diff)
downloaddiscoin-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/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 7e2cda629..0084dd674 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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;
}