include version information in help output
authorMarius Hanne <marius.hanne@sourceagency.org>
Wed, 19 Jan 2011 21:49:12 +0000 (22:49 +0100)
committerMarius Hanne <marius.hanne@sourceagency.org>
Wed, 19 Jan 2011 21:49:12 +0000 (22:49 +0100)
init.cpp

index e114d80..3260d1c 100644 (file)
--- a/init.cpp
+++ b/init.cpp
@@ -159,6 +159,7 @@ bool AppInit2(int argc, char* argv[])
     if (mapArgs.count("-?") || mapArgs.count("--help"))
     {
         string strUsage = string() +
+          "bitcoin version " + FormatVersion(VERSION).c_str() + " beta\n" +
           _("Usage:") + "\t\t\t\t\t\t\t\t\t\t\n" +
             "  bitcoin [options]                   \t  " + "\n" +
             "  bitcoin [options] <command> [params]\t  " + _("Send command to -server or bitcoind\n") +