diff options
author | Tim Ruffing <crypto@timruffing.de> | 2018-05-08 17:31:21 +0200 |
---|---|---|
committer | Tim Ruffing <crypto@timruffing.de> | 2018-08-04 16:17:13 +0200 |
commit | 7272fdcfe7370412b34a96bc19f3819e03169ef7 (patch) | |
tree | cc2dbbd4653df3a22c3327987129e8e45b671a97 /src/qt | |
parent | 2b67354aa584c4aabae049a67767ac7b70e2d01a (diff) |
[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.
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/utilitydialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qt/utilitydialog.cpp b/src/qt/utilitydialog.cpp index 1da25b0761..c9469593a5 100644 --- a/src/qt/utilitydialog.cpp +++ b/src/qt/utilitydialog.cpp @@ -70,8 +70,7 @@ HelpMessageDialog::HelpMessageDialog(interfaces::Node& node, QWidget *parent, bo ui->helpMessage->setVisible(false); } else { setWindowTitle(tr("Command-line options")); - QString header = "Usage:\n" - " bitcoin-qt [command-line options] \n"; + QString header = "Usage: bitcoin-qt [command-line options] \n"; QTextCursor cursor(ui->helpMessage->document()); cursor.insertText(version); cursor.insertBlock(); @@ -80,7 +79,7 @@ HelpMessageDialog::HelpMessageDialog(interfaces::Node& node, QWidget *parent, bo std::string strUsage = gArgs.GetHelpMessage(); QString coreOptions = QString::fromStdString(strUsage); - text = version + "\n" + header + "\n" + coreOptions; + text = version + "\n\n" + header + "\n" + coreOptions; QTextTableFormat tf; tf.setBorderStyle(QTextFrameFormat::BorderStyle_None); |