Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
Show All 29 Lines | |||||
static void SetupCliArgs() { | static void SetupCliArgs() { | ||||
const auto defaultBaseParams = | const auto defaultBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::MAIN); | CreateBaseChainParams(CBaseChainParams::MAIN); | ||||
const auto testnetBaseParams = | const auto testnetBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::TESTNET); | CreateBaseChainParams(CBaseChainParams::TESTNET); | ||||
gArgs.AddArg("-?", _("This help message"), false, OptionsCategory::OPTIONS); | gArgs.AddArg("-?", _("This help message"), false, OptionsCategory::OPTIONS); | ||||
gArgs.AddArg("-version", "Print version and exit", false, | |||||
OptionsCategory::OPTIONS); | |||||
gArgs.AddArg("-conf=<file>", | gArgs.AddArg("-conf=<file>", | ||||
strprintf(_("Specify configuration file (default: %s)"), | strprintf(_("Specify configuration file (default: %s)"), | ||||
BITCOIN_CONF_FILENAME), | BITCOIN_CONF_FILENAME), | ||||
false, OptionsCategory::OPTIONS); | false, OptionsCategory::OPTIONS); | ||||
gArgs.AddArg("-datadir=<dir>", _("Specify data directory"), false, | gArgs.AddArg("-datadir=<dir>", _("Specify data directory"), false, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
gArgs.AddArg( | gArgs.AddArg( | ||||
"-getinfo", | "-getinfo", | ||||
▲ Show 20 Lines • Show All 586 Lines • Show Last 20 Lines |