Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | void ArgsManager::ForceSetMultiArg(const std::string &strArg, | ||||
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); | ||||
} | } | ||||
void ArgsManager::ClearMultiArg(const std::string &strArg) { | |||||
LOCK(cs_args); | |||||
mapMultiArgs.erase(strArg); | |||||
mapArgs.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; | ||||
static const int msgIndent = 7; | static const int msgIndent = 7; | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |