diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-02-17 17:53:41 +0100 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-27 12:48:28 -0500 |
commit | 001a64c71cb7f4090e953f49c32a6258e0d58767 (patch) | |
tree | 4445b6fe392d68db779811b382ba00a4ee7de490 /src | |
parent | b085138f89e93eac900a863e0d1aa14472aa32d3 (diff) | |
download | bitcoin-001a64c71cb7f4090e953f49c32a6258e0d58767.tar.xz |
On windows, show message box with help, as there is no stderr (fixes #702)
(partial)
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 0d042f0cfb..c8141f2c91 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -241,7 +241,12 @@ bool AppInit2(int argc, char* argv[]) // Remove tabs strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end()); +#if defined(QT_GUI) && defined(WIN32) + // On windows, show a message box, as there is no stderr + wxMessageBox(strUsage, "Usage"); +#else fprintf(stderr, "%s", strUsage.c_str()); +#endif return false; } |