Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.h
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Clear available arguments | * Clear available arguments | ||||
*/ | */ | ||||
void ClearArgs() { m_available_args.clear(); } | void ClearArgs() { m_available_args.clear(); } | ||||
/** | /** | ||||
* Get the help string | * Get the help string | ||||
*/ | */ | ||||
std::string GetHelpMessage(); | std::string GetHelpMessage() const; | ||||
/** | /** | ||||
* Check whether we know of this arg | * Check whether we know of this arg | ||||
*/ | */ | ||||
bool IsArgKnown(const std::string &key, std::string &error); | bool IsArgKnown(const std::string &key) const; | ||||
}; | }; | ||||
extern ArgsManager gArgs; | extern ArgsManager gArgs; | ||||
/** | /** | ||||
* @return true if help has been requested via a command-line arg | * @return true if help has been requested via a command-line arg | ||||
*/ | */ | ||||
bool HelpRequested(const ArgsManager &args); | bool HelpRequested(const ArgsManager &args); | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |