ArgsManager: keep command line and config file arguments separate

This commit is contained in:
Anthony Towns
2018-04-04 18:01:00 +10:00
parent 0a8054e7cd
commit 3673ca36ef
3 changed files with 137 additions and 56 deletions

View File

@@ -223,11 +223,12 @@ inline bool IsSwitchChar(char c)
class ArgsManager
{
protected:
mutable CCriticalSection cs_args;
std::map<std::string, std::string> mapArgs;
std::map<std::string, std::vector<std::string>> mapMultiArgs;
std::unordered_set<std::string> m_negated_args;
friend class ArgsManagerHelper;
mutable CCriticalSection cs_args;
std::map<std::string, std::vector<std::string>> m_override_args;
std::map<std::string, std::vector<std::string>> m_config_args;
std::unordered_set<std::string> m_negated_args;
void ReadConfigStream(std::istream& stream);
public: