MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetArgs

Method GetArgs

src/util/system.cpp:482–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482std::vector<std::string> ArgsManager::GetArgs(const std::string& strArg) const
483{
484 std::vector<std::string> result;
485 for (const util::SettingsValue& value : GetSettingsList(strArg)) {
486 result.push_back(value.isFalse() ? "0" : value.isTrue() ? "1" : value.get_str());
487 }
488 return result;
489}
490
491bool ArgsManager::IsArgSet(const std::string& strArg) const
492{

Callers 15

InitHTTPAllowListFunction · 0.80
HTTPBindAddressesFunction · 0.80
InitRPCAuthenticationFunction · 0.80
auth_cbMethod · 0.80
AppInitMainFunction · 0.80
SigNetParamsMethod · 0.80
MaybeUpdateHeightsFunction · 0.80
UpdateFromArgsMethod · 0.80
UpdateFromArgsMethod · 0.80

Calls 4

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

Tested by 4

CheckValueMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64