mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 04:54:30 +00:00
fix -datadir inicialization and debug log
This commit is contained in:
parent
0800e8dea5
commit
1556e436c5
@ -526,6 +526,8 @@ static void InterpretNegativeSetting(string name, map<string, string>& mapSettin
|
|||||||
|
|
||||||
void ParseParameters(int argc, const char* const argv[])
|
void ParseParameters(int argc, const char* const argv[])
|
||||||
{
|
{
|
||||||
|
fCachedPath[0] = fCachedPath[1] = false; // clear cached path to receive cmdline
|
||||||
|
|
||||||
mapArgs.clear();
|
mapArgs.clear();
|
||||||
mapMultiArgs.clear();
|
mapMultiArgs.clear();
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
@ -567,6 +569,8 @@ void ParseParameters(int argc, const char* const argv[])
|
|||||||
// interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set
|
// interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set
|
||||||
InterpretNegativeSetting(name, mapArgs);
|
InterpretNegativeSetting(name, mapArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fReopenDebugLog = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetArg(const std::string& strArg, const std::string& strDefault)
|
std::string GetArg(const std::string& strArg, const std::string& strDefault)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user