Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,014 Lines • ▼ Show 20 Lines | |||||
#if HAVE_DECL_DAEMON | #if HAVE_DECL_DAEMON | ||||
gArgs.AddArg("-daemon", | gArgs.AddArg("-daemon", | ||||
_("Run in the background as a daemon and accept commands"), | _("Run in the background as a daemon and accept commands"), | ||||
false, OptionsCategory::OPTIONS); | false, OptionsCategory::OPTIONS); | ||||
#else | #else | ||||
hidden_args.emplace_back("-daemon"); | hidden_args.emplace_back("-daemon"); | ||||
#endif | #endif | ||||
// Avalanche options. | |||||
gArgs.AddArg( | |||||
"-avaenabled", | |||||
jasonbcox: Ideally this would be declarative similar to `-enablebip61`: `-enableava`
But I can see the… | |||||
strprintf("Enable avalanche (default: %u)", AVALANCHE_DEFAULT_ENABLED), | |||||
false, OptionsCategory::AVALANCHE); | |||||
gArgs.AddArg( | |||||
"-avacooldown", | |||||
strprintf("Mandatory cooldown between two avapoll (default: %u)", | |||||
AVALANCHE_DEFAULT_COOLDOWN), | |||||
false, OptionsCategory::AVALANCHE); | |||||
// Add the hidden options | // Add the hidden options | ||||
gArgs.AddHiddenArgs(hidden_args); | gArgs.AddHiddenArgs(hidden_args); | ||||
} | } | ||||
std::string LicenseInfo() { | std::string LicenseInfo() { | ||||
const std::string URL_SOURCE_CODE = | const std::string URL_SOURCE_CODE = | ||||
"<https://github.com/Bitcoin-ABC/bitcoin-abc>"; | "<https://github.com/Bitcoin-ABC/bitcoin-abc>"; | ||||
const std::string URL_WEBSITE = "<https://www.bitcoinabc.org>"; | const std::string URL_WEBSITE = "<https://www.bitcoinabc.org>"; | ||||
▲ Show 20 Lines • Show All 1,508 Lines • Show Last 20 Lines |
Ideally this would be declarative similar to -enablebip61: -enableava
But I can see the value in having the help text for ava be grouped together or easily greppable.
Perhaps the only improvement I can offer is -avaenable to keep the tense consistent.
Over time, we can move towards a format of -<group><attribute>