From b70cc5d73357ea11296f3b6bb81193ba1101e73b Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 27 Jul 2019 16:19:17 +0300 Subject: [PATCH] Revamp option negating policy --- src/util/system.cpp | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/util/system.cpp b/src/util/system.cpp index c7e342a59e6..f8fcbc12062 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -282,7 +282,10 @@ public: * options that are not normally boolean (e.g. using -nodebuglogfile to request * that debug log output is not sent to any file at all). */ -static void InterpretOption(std::string key, std::string val, std::map>& args) + +NODISCARD static bool InterpretOption(std::string key, std::string val, unsigned int flags, + std::map>& args, + std::string& error) { assert(key[0] == '-'); @@ -293,18 +296,22 @@ static void InterpretOption(std::string key, std::string val, std::map