aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-06-10 16:02:46 +0200
committerWladimir J. van der Laan <[email protected]>2014-06-12 16:11:56 +0200
commit45615af26fe374fa996c116984a05f0a632a0e79 (patch)
tree8d291f3ddb4b0781e47bdf63e145640bad3b5592 /src/bitcoind.cpp
parentutil: Add function FormatParagraph to format paragraph to fixed-width (diff)
downloaddiscoin-45615af26fe374fa996c116984a05f0a632a0e79.tar.xz
discoin-45615af26fe374fa996c116984a05f0a632a0e79.zip
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.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index 99dc9d726..b7d8ee7f9 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -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" +