Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
| Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | public: | ||||
| void ForceSetArg(const std::string &strArg, const std::string &strValue); | void ForceSetArg(const std::string &strArg, const std::string &strValue); | ||||
| // Forces a multi arg setting, used only in testing | // Forces a multi arg setting, used only in testing | ||||
| void ForceSetMultiArg(const std::string &strArg, | void ForceSetMultiArg(const std::string &strArg, | ||||
| const std::string &strValue); | const std::string &strValue); | ||||
| // 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); | ||||
| // Specific arguments | |||||
| bool IsHelpSet(); | |||||
| bool IsVersionSet(); | |||||
| bool IsDataDirSet(); | |||||
| std::string GetDataDir(); | |||||
| std::string DataDirHelp(); | |||||
| bool SoftSetDataDir(const std::string &strValue); | |||||
| }; | }; | ||||
| extern ArgsManager gArgs; | extern ArgsManager gArgs; | ||||
| /** | /** | ||||
| * Format a string to be used as group of options in help messages. | * Format a string to be used as group of options in help messages. | ||||
| * | * | ||||
| * @param message Group name (e.g. "RPC server options:") | * @param message Group name (e.g. "RPC server options:") | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||