Add 'about' information to -version output

Adds a copyright and attribution message to the `-version` output
(the same as shown in the About dialog in the GUI).

Move the message to a function LicenseInfo in init.cpp.
This commit is contained in:
Wladimir J. van der Laan
2014-06-10 16:02:46 +02:00
parent 97789d374c
commit 45615af26f
5 changed files with 38 additions and 74 deletions

View File

@@ -87,7 +87,11 @@ bool AppInit(int argc, char* argv[])
{
std::string strUsage = _("Bitcoin Core Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n";
if (!mapArgs.count("-version"))
if (mapArgs.count("-version"))
{
strUsage += LicenseInfo();
}
else
{
strUsage += "\n" + _("Usage:") + "\n" +
" bitcoind [options] " + _("Start Bitcoin Core Daemon") + "\n" +