message: [Bug] Omit wallet-related options from -help when wallet not supported
  >>> backports bitcoin/bitcoin@3307bdb3331732e781c77a88ef7053fe23c78701
diff: #include "policy/policy.h"
  #include "rpc/server.h"
  #include "script/standard.h"
  -#include "script/sigcache.h"
  #include "scheduler.h"
  #include "spork.h"
  #include "sporkdb.h"
  @@ -533,7 +532,9 @@ std::string HelpMessage(HelpMessageMode mode)
  strUsage += HelpMessageOpt("-printtoconsole", strprintf(_("Send trace/debug info to console instead of debug.log file (default: %u)"), 0));
  if (GetBoolArg("-help-debug", false)) {
  strUsage += HelpMessageOpt("-printpriority", strprintf(_("Log transaction priority and fee per kB when mining blocks (default: %u)"), DEFAULT_PRINTPRIORITY));
  +#ifdef ENABLE_WALLET
  strUsage += HelpMessageOpt("-privdb", strprintf(_("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)"), DEFAULT_WALLET_PRIVDB));
  +#endif
  strUsage += HelpMessageOpt("-regtest", _("Enter regression test mode, which uses a special chain in which blocks can be solved instantly.") + " " +
  _("This is intended for regression testing tools and app development.") + " " +
  _("In this mode -genproclimit controls how many blocks are generated immediately."));
  