diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-10 16:02:46 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-12 16:11:56 +0200 |
commit | 45615af26fe374fa996c116984a05f0a632a0e79 (patch) | |
tree | 8d291f3ddb4b0781e47bdf63e145640bad3b5592 /src/bitcoind.cpp | |
parent | 97789d374c40f4f7fc8feb19c1235ca09ad2e06e (diff) |
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.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 99dc9d726d..b7d8ee7f90 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" + |