Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | std::string HelpMessage(HelpMessageMode mode) { | ||||
// When adding new options to the categories, please keep and ensure | // When adding new options to the categories, please keep and ensure | ||||
// alphabetical ordering. Do not translate _(...) -help-debug options, Many | // alphabetical ordering. Do not translate _(...) -help-debug options, Many | ||||
// technical terms, and only a very small audience, so is unnecessary stress | // technical terms, and only a very small audience, so is unnecessary stress | ||||
// to translators. | // to translators. | ||||
std::string strUsage = HelpMessageGroup(_("Options:")); | std::string strUsage = HelpMessageGroup(_("Options:")); | ||||
strUsage += HelpMessageOpt("-?", _("Print this help message and exit")); | strUsage += HelpMessageOpt("-?", _("Print this help message and exit")); | ||||
strUsage += HelpMessageOpt("-version", _("Print version and exit")); | strUsage += HelpMessageOpt("-version", _("Print version and exit")); | ||||
strUsage += HelpMessageOpt( | |||||
"-alertnotify=<cmd>", | |||||
_("Execute command when a relevant alert is received or we see a " | |||||
"really long fork (%s in cmd is replaced by message)")); | |||||
strUsage += HelpMessageOpt("-blocknotify=<cmd>", | strUsage += HelpMessageOpt("-blocknotify=<cmd>", | ||||
_("Execute command when the best block changes " | _("Execute command when the best block changes " | ||||
"(%s in cmd is replaced by block hash)")); | "(%s in cmd is replaced by block hash)")); | ||||
if (showDebug) { | if (showDebug) { | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-blocksonly", | "-blocksonly", | ||||
strprintf( | strprintf( | ||||
_("Whether to operate in a blocks only mode (default: %d)"), | _("Whether to operate in a blocks only mode (default: %d)"), | ||||
▲ Show 20 Lines • Show All 2,063 Lines • Show Last 20 Lines |