Add a ForceSetArg method for testing

This commit is contained in:
Matt Corallo
2016-12-24 11:28:44 -05:00
parent 4e048142a5
commit c2f61bebb1
5 changed files with 16 additions and 9 deletions

View File

@@ -428,6 +428,14 @@ bool SoftSetBoolArg(const std::string& strArg, bool fValue)
return SoftSetArg(strArg, std::string("0"));
}
void ForceSetArg(const std::string& strArg, const std::string& strValue)
{
LOCK(cs_args);
mapArgs[strArg] = strValue;
}
static const int screenWidth = 79;
static const int optIndent = 2;
static const int msgIndent = 7;