Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | public: | ||||
* @return CBaseChainParams::MAIN by default; raises runtime error if an | * @return CBaseChainParams::MAIN by default; raises runtime error if an | ||||
* invalid combination is given. | * invalid combination is given. | ||||
*/ | */ | ||||
std::string GetChainName() const; | std::string GetChainName() const; | ||||
// Remove an arg setting, used only in testing | // Remove an arg setting, used only in testing | ||||
void ClearArg(const std::string &strArg); | void ClearArg(const std::string &strArg); | ||||
// Remove a multi arg setting, used only in testing | |||||
void ClearMultiArg(const std::string &strArg); | |||||
private: | private: | ||||
// Munge -nofoo into -foo=0 and track the value as negated. | // Munge -nofoo into -foo=0 and track the value as negated. | ||||
void InterpretNegatedOption(std::string &key, std::string &val); | void InterpretNegatedOption(std::string &key, std::string &val); | ||||
}; | }; | ||||
extern ArgsManager gArgs; | extern ArgsManager gArgs; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |