MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetBoolArg

Method GetBoolArg

src/common/args.cpp:573–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573bool ArgsManager::GetBoolArg(const std::string& strArg, bool fDefault) const
574{
575 return GetBoolArg(strArg).value_or(fDefault);
576}
577
578std::optional<bool> ArgsManager::GetBoolArg(const std::string& strArg) const
579{

Callers 15

AppInitRawTxFunction · 0.80
OutputTxFunction · 0.80
InitRPCAuthenticationFunction · 0.80
AppInitRPCFunction · 0.80
PrepareRequestMethod · 0.80
ConnectAndCallRPCFunction · 0.80
CommandLineRPCFunction · 0.80
AppInitUtilFunction · 0.80
AppInitServersFunction · 0.80
InitParameterInteractionFunction · 0.80
AppInitMainFunction · 0.80

Calls 3

GetSettingFunction · 0.85
SettingToBoolFunction · 0.85
value_orMethod · 0.45

Tested by 7

CheckValueMethod · 0.64
TestParseFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
ChainTestingSetupMethod · 0.64
parametersInteractionMethod · 0.64