| 483 | } |
| 484 | |
| 485 | std::vector<std::string> ArgsManager::GetArgs(const std::string& strArg) const |
| 486 | { |
| 487 | std::vector<std::string> result = {}; |
| 488 | if (IsArgNegated(strArg)) return result; // special case |
| 489 | |
| 490 | LOCK(cs_args); |
| 491 | |
| 492 | ArgsManagerHelper::AddArgs(result, m_override_args, strArg); |
| 493 | if (!m_network.empty()) { |
| 494 | ArgsManagerHelper::AddArgs(result, m_config_args, ArgsManagerHelper::NetworkArg(*this, strArg)); |
| 495 | } |
| 496 | |
| 497 | if (ArgsManagerHelper::UseDefaultSection(*this, strArg)) { |
| 498 | ArgsManagerHelper::AddArgs(result, m_config_args, strArg); |
| 499 | } |
| 500 | |
| 501 | return result; |
| 502 | } |
| 503 | |
| 504 | bool ArgsManager::IsArgSet(const std::string& strArg) const |
| 505 | { |