mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Make gArgs aware of the arguments
gArgs knows what the available arguments are and their help. Getting the help message is moved to gArgs and HelpMessage() is removed
This commit is contained in:
@@ -78,21 +78,7 @@ HelpMessageDialog::HelpMessageDialog(interfaces::Node& node, QWidget *parent, bo
|
||||
cursor.insertText(header);
|
||||
cursor.insertBlock();
|
||||
|
||||
std::string strUsage = node.helpMessage(HelpMessageMode::BITCOIN_QT);
|
||||
const bool showDebug = gArgs.GetBoolArg("-help-debug", false);
|
||||
strUsage += HelpMessageGroup(tr("UI Options:").toStdString());
|
||||
if (showDebug) {
|
||||
strUsage += HelpMessageOpt("-allowselfsignedrootcertificates", strprintf("Allow self signed root certificates (default: %u)", DEFAULT_SELFSIGNED_ROOTCERTS));
|
||||
}
|
||||
strUsage += HelpMessageOpt("-choosedatadir", strprintf(tr("Choose data directory on startup (default: %u)").toStdString(), DEFAULT_CHOOSE_DATADIR));
|
||||
strUsage += HelpMessageOpt("-lang=<lang>", tr("Set language, for example \"de_DE\" (default: system locale)").toStdString());
|
||||
strUsage += HelpMessageOpt("-min", tr("Start minimized").toStdString());
|
||||
strUsage += HelpMessageOpt("-resetguisettings", tr("Reset all settings changed in the GUI").toStdString());
|
||||
strUsage += HelpMessageOpt("-rootcertificates=<file>", tr("Set SSL root certificates for payment request (default: -system-)").toStdString());
|
||||
strUsage += HelpMessageOpt("-splash", strprintf(tr("Show splash screen on startup (default: %u)").toStdString(), DEFAULT_SPLASHSCREEN));
|
||||
if (showDebug) {
|
||||
strUsage += HelpMessageOpt("-uiplatform", strprintf("Select platform to customize UI for (one of windows, macosx, other; default: %s)", BitcoinGUI::DEFAULT_UIPLATFORM));
|
||||
}
|
||||
std::string strUsage = gArgs.GetHelpMessage();
|
||||
QString coreOptions = QString::fromStdString(strUsage);
|
||||
text = version + "\n" + header + "\n" + coreOptions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user