MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / GetHelpMessage

Method GetHelpMessage

src/common/args.cpp:621–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621std::string ArgsManager::GetHelpMessage() const {
622 const bool show_debug = GetBoolArg("-help-debug", false);
623
624 std::string usage = "";
625 LOCK(cs_args);
626 for (const auto &arg_map : m_available_args) {
627 switch (arg_map.first) {
628 case OptionsCategory::OPTIONS:
629 usage += HelpMessageGroup("Options:");
630 break;
631 case OptionsCategory::CONNECTION:
632 usage += HelpMessageGroup("Connection options:");
633 break;
634 case OptionsCategory::ZMQ:
635 usage += HelpMessageGroup("ZeroMQ notification options:");
636 break;
637 case OptionsCategory::DEBUG_TEST:
638 usage += HelpMessageGroup("Debugging/Testing options:");
639 break;
640 case OptionsCategory::NODE_RELAY:
641 usage += HelpMessageGroup("Node relay options:");
642 break;
643 case OptionsCategory::BLOCK_CREATION:
644 usage += HelpMessageGroup("Block creation options:");
645 break;
646 case OptionsCategory::RPC:
647 usage += HelpMessageGroup("RPC server options:");
648 break;
649 case OptionsCategory::WALLET:
650 usage += HelpMessageGroup("Wallet options:");
651 break;
652 case OptionsCategory::WALLET_DEBUG_TEST:
653 if (show_debug) {
654 usage +=
655 HelpMessageGroup("Wallet debugging/testing options:");
656 }
657 break;
658 case OptionsCategory::CHAINPARAMS:
659 usage += HelpMessageGroup("Chain selection options:");
660 break;
661 case OptionsCategory::GUI:
662 usage += HelpMessageGroup("UI Options:");
663 break;
664 case OptionsCategory::COMMANDS:
665 usage += HelpMessageGroup("Commands:");
666 break;
667 case OptionsCategory::REGISTER_COMMANDS:
668 usage += HelpMessageGroup("Register Commands:");
669 break;
670 case OptionsCategory::AVALANCHE:
671 usage += HelpMessageGroup("Avalanche options:");
672 break;
673 case OptionsCategory::CHRONIK:
674 usage += HelpMessageGroup("Chronik options:");
675 break;
676 default:
677 break;
678 }

Callers 9

AppInitRawTxFunction · 0.80
AppInitRPCFunction · 0.80
AppInitFunction · 0.80
WalletAppInitFunction · 0.80
ParseCommandLineMethod · 0.80
mainFunction · 0.80
FUZZ_TARGETFunction · 0.80
HelpMessageDialogMethod · 0.80
mainFunction · 0.80

Calls 3

HelpMessageGroupFunction · 0.85
HelpMessageOptFunction · 0.85
emptyMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.64