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

Method GetArgs

src/common/args.cpp:424–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424std::vector<std::string> ArgsManager::GetArgs(const std::string& strArg) const
425{
426 std::vector<std::string> result;
427 for (const common::SettingsValue& value : GetSettingsList(strArg)) {
428 result.push_back(value.isFalse() ? "0" : value.isTrue() ? "1" : value.get_str());
429 }
430 return result;
431}
432
433bool ArgsManager::IsArgSet(const std::string& strArg) const
434{

Callers 15

InitHTTPAllowListFunction · 0.80
GetBindAddressesFunction · 0.80
InitRPCAuthenticationFunction · 0.80
get_socks_cbMethod · 0.80
ShutdownNotifyFunction · 0.80
InitParameterInteractionFunction · 0.80
CheckHostPortOptionsFunction · 0.80
AppInitMainFunction · 0.80
HandleDeploymentArgsFunction · 0.80
ReadSigNetArgsFunction · 0.80
GetListenPortFunction · 0.80

Calls 4

GetSettingsListFunction · 0.85
isFalseMethod · 0.80
isTrueMethod · 0.80
push_backMethod · 0.45

Tested by 3

CheckValueMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64