Skip to content

Commit 1bccf6a

Browse files
committed
[node] add forceSetArg to interface
1 parent 3ca514d commit 1bccf6a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/interfaces/node.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class NodeImpl : public Node
6060
return gArgs.ParseParameters(argc, argv, error);
6161
}
6262
bool readConfigFiles(std::string& error) override { return gArgs.ReadConfigFiles(error, true); }
63+
void forceSetArg(const std::string& arg, const std::string& value) override { gArgs.ForceSetArg(arg, value); }
6364
bool softSetArg(const std::string& arg, const std::string& value) override { return gArgs.SoftSetArg(arg, value); }
6465
bool softSetBoolArg(const std::string& arg, bool value) override { return gArgs.SoftSetBoolArg(arg, value); }
6566
void selectParams(const std::string& network) override { SelectParams(network); }

src/interfaces/node.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class Node
4444
//! Set command line arguments.
4545
virtual bool parseParameters(int argc, const char* const argv[], std::string& error) = 0;
4646

47+
//! Set a command line argument
48+
virtual void forceSetArg(const std::string& arg, const std::string& value) = 0;
49+
4750
//! Set a command line argument if it doesn't already have a value
4851
virtual bool softSetArg(const std::string& arg, const std::string& value) = 0;
4952

0 commit comments

Comments
 (0)