| 508 | } |
| 509 | |
| 510 | bool ArgsManager::IsArgNegated(const std::string& strArg) const |
| 511 | { |
| 512 | LOCK(cs_args); |
| 513 | |
| 514 | const auto& ov = m_override_args.find(strArg); |
| 515 | if (ov != m_override_args.end()) return ov->second.empty(); |
| 516 | |
| 517 | if (!m_network.empty()) { |
| 518 | const auto& cfs = m_config_args.find(ArgsManagerHelper::NetworkArg(*this, strArg)); |
| 519 | if (cfs != m_config_args.end()) return cfs->second.empty(); |
| 520 | } |
| 521 | |
| 522 | const auto& cf = m_config_args.find(strArg); |
| 523 | if (cf != m_config_args.end()) return cf->second.empty(); |
| 524 | |
| 525 | return false; |
| 526 | } |
| 527 | |
| 528 | std::string ArgsManager::GetArg(const std::string& strArg, const std::string& strDefault) const |
| 529 | { |