[node] add forceSetArg to interface
This commit is contained in:
parent
3ca514ddb7
commit
1bccf6a52d
2 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,7 @@ public:
|
||||||
return gArgs.ParseParameters(argc, argv, error);
|
return gArgs.ParseParameters(argc, argv, error);
|
||||||
}
|
}
|
||||||
bool readConfigFiles(std::string& error) override { return gArgs.ReadConfigFiles(error, true); }
|
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); }
|
bool softSetArg(const std::string& arg, const std::string& value) override { return gArgs.SoftSetArg(arg, value); }
|
||||||
bool softSetBoolArg(const std::string& arg, bool value) override { return gArgs.SoftSetBoolArg(arg, value); }
|
bool softSetBoolArg(const std::string& arg, bool value) override { return gArgs.SoftSetBoolArg(arg, value); }
|
||||||
void selectParams(const std::string& network) override { SelectParams(network); }
|
void selectParams(const std::string& network) override { SelectParams(network); }
|
||||||
|
|
|
@ -44,6 +44,9 @@ public:
|
||||||
//! Set command line arguments.
|
//! Set command line arguments.
|
||||||
virtual bool parseParameters(int argc, const char* const argv[], std::string& error) = 0;
|
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
|
//! 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;
|
virtual bool softSetArg(const std::string& arg, const std::string& value) = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue