mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user