mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 12:03:04 +02:00
[docs] Reformat -help output for help2man
This commit slightly changes the format of the "Usage" strings in CLI `-help` messages to meet the expection of the help2man tool, which we use to generate man pages. On the way, we remove a few calls to `strprintf()`, which became superficial after commit 32fbfda.
This commit is contained in:
@@ -71,7 +71,7 @@ static bool AppInit(int argc, char* argv[])
|
||||
|
||||
// Process help and version before taking care about datadir
|
||||
if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) {
|
||||
std::string strUsage = strprintf("%s Daemon", PACKAGE_NAME) + " version " + FormatFullVersion() + "\n";
|
||||
std::string strUsage = PACKAGE_NAME " Daemon version " + FormatFullVersion() + "\n";
|
||||
|
||||
if (gArgs.IsArgSet("-version"))
|
||||
{
|
||||
@@ -79,9 +79,7 @@ static bool AppInit(int argc, char* argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
strUsage += "\nUsage:\n"
|
||||
" bitcoind [options] " + strprintf("Start %s Daemon", PACKAGE_NAME) + "\n";
|
||||
|
||||
strUsage += "\nUsage: bitcoind [options] Start " PACKAGE_NAME " Daemon\n";
|
||||
strUsage += "\n" + gArgs.GetHelpMessage();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user