[config] Help text cleanup #10748
119163f
144fff6
dd07c73
479f2b3
fed0057
a91306b
5aeac98
ac05e37
01e5976
Large diffs are not rendered by default.
| @@ -20,6 +20,9 @@ | ||
| #include "clientversion.h" | ||
| #include "init.h" | ||
| #include "util.h" | ||
| +#ifdef ENABLE_WALLET | ||
laanwj
Owner
|
||
| +#include "wallet/wallet.h" | ||
| +#endif | ||
| #include <stdio.h> | ||
| @@ -77,21 +80,19 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) : | ||
| cursor.insertText(header); | ||
| cursor.insertBlock(); | ||
| - std::string strUsage = HelpMessage(HMM_BITCOIN_QT); | ||
| - const bool showDebug = GetBoolArg("-help-debug", false); | ||
| + std::string strUsage = HelpMessage(); | ||
| strUsage += HelpMessageGroup(tr("UI Options:").toStdString()); | ||
| - if (showDebug) { | ||
| - strUsage += HelpMessageOpt("-allowselfsignedrootcertificates", strprintf("Allow self signed root certificates (default: %u)", DEFAULT_SELFSIGNED_ROOTCERTS)); | ||
| - } | ||
| + strUsage += HelpMessageOpt("-allowselfsignedrootcertificates", strprintf("Allow self signed root certificates (default: %u)", DEFAULT_SELFSIGNED_ROOTCERTS), HELP_MESSAGE_FILTER_DEBUG); | ||
| 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)); | ||
| - strUsage += HelpMessageOpt("-resetguisettings", tr("Reset all settings changed in the GUI").toStdString()); | ||
| - if (showDebug) { | ||
| - strUsage += HelpMessageOpt("-uiplatform", strprintf("Select platform to customize UI for (one of windows, macosx, other; default: %s)", BitcoinGUI::DEFAULT_UIPLATFORM)); | ||
| - } | ||
| + strUsage += HelpMessageOpt("-uiplatform", strprintf("Select platform to customize UI for (one of windows, macosx, other; default: %s)", BitcoinGUI::DEFAULT_UIPLATFORM), HELP_MESSAGE_FILTER_DEBUG); | ||
| +#ifdef ENABLE_WALLET | ||
| + strUsage += CWallet::GetWalletHelpString(); // "Wallet options" / "Wallet debugging/testing options" | ||
| +#endif | ||
| QString coreOptions = QString::fromStdString(strUsage); | ||
| text = version + "\n" + header + "\n" + coreOptions; | ||
Right, we need to move the wallet dependency up here if we want to remove the wallet dependency from
libbitcoin_server.