Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | if (mapArgs.count(strArg) == 0) { | ||||
mapArgs[strArg] = strValue; | mapArgs[strArg] = strValue; | ||||
} | } | ||||
mapMultiArgs[strArg].push_back(strValue); | mapMultiArgs[strArg].push_back(strValue); | ||||
} | } | ||||
void ArgsManager::ClearArg(const std::string &strArg) { | void ArgsManager::ClearArg(const std::string &strArg) { | ||||
LOCK(cs_args); | LOCK(cs_args); | ||||
mapArgs.erase(strArg); | mapArgs.erase(strArg); | ||||
mapMultiArgs.erase(strArg); | |||||
} | } | ||||
bool HelpRequested(const ArgsManager &args) { | bool HelpRequested(const ArgsManager &args) { | ||||
return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help"); | return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help"); | ||||
} | } | ||||
static const int screenWidth = 79; | static const int screenWidth = 79; | ||||
static const int optIndent = 2; | static const int optIndent = 2; | ||||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |