diff --git a/src/interfaces/node.h b/src/interfaces/node.h --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -52,6 +52,10 @@ virtual bool parseParameters(int argc, const char *const argv[], std::string &error) = 0; + //! Set a command line argument + virtual void forceSetArg(const std::string &arg, + const std::string &value) = 0; + //! Set a command line argument if it doesn't already have a value virtual bool softSetArg(const std::string &arg, const std::string &value) = 0; diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -73,6 +73,10 @@ bool readConfigFiles(std::string &error) override { return gArgs.ReadConfigFiles(error, true); } + void forceSetArg(const std::string &arg, + const std::string &value) override { + gArgs.ForceSetArg(arg, value); + } bool softSetArg(const std::string &arg, const std::string &value) override { return gArgs.SoftSetArg(arg, value);