diff options
author | Chris Moore <dooglus@gmail.com> | 2011-01-21 02:37:34 -0800 |
---|---|---|
committer | Chris Moore <dooglus@gmail.com> | 2011-01-21 02:37:34 -0800 |
commit | 5284e1b60e79bd535e808fb1d9968f22d565f9c2 (patch) | |
tree | d5ed76bf655795eb1819f029dc4388a860e86bf0 /init.cpp | |
parent | 05563e9ef26e40c05092bf840a01d78bd2e7efb6 (diff) |
Add const bool VERSION_IS_BETA to serialize.h and use it when formatting the version string. Show the version string in --help text too.
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -158,7 +158,9 @@ bool AppInit2(int argc, char* argv[]) if (mapArgs.count("-?") || mapArgs.count("--help")) { + string beta = VERSION_IS_BETA ? _(" beta") : ""; string strUsage = string() + + _("Bitcoin version") + " " + FormatVersion(VERSION) + pszSubVer + beta + "\n\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") + @@ -227,7 +229,7 @@ bool AppInit2(int argc, char* argv[]) if (!fDebug && !pszSetDataDir[0]) ShrinkDebugFile(); printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); - printf("Bitcoin version %s%s beta\n", FormatVersion(VERSION).c_str(), pszSubVer); + printf("Bitcoin version %s%s%s\n", FormatVersion(VERSION).c_str(), pszSubVer, VERSION_IS_BETA ? _(" beta") : ""); #ifdef GUI printf("OS version %s\n", ((string)wxGetOsDescription()).c_str()); printf("System default language is %d %s\n", g_locale.GetSystemLanguage(), ((string)g_locale.GetSysName()).c_str()); |