mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 03:01:09 +02:00
util: Add SetupHelpOptions()
This commit is contained in:
@ -35,7 +35,8 @@ const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr;
|
||||
|
||||
static void SetupBitcoinTxArgs()
|
||||
{
|
||||
gArgs.AddArg("-?", "This help message", false, OptionsCategory::OPTIONS);
|
||||
SetupHelpOptions(gArgs);
|
||||
|
||||
gArgs.AddArg("-create", "Create new, empty TX.", false, OptionsCategory::OPTIONS);
|
||||
gArgs.AddArg("-json", "Select JSON output", false, OptionsCategory::OPTIONS);
|
||||
gArgs.AddArg("-txid", "Output only the hex-encoded transaction id of the resultant transaction.", false, OptionsCategory::OPTIONS);
|
||||
@ -66,10 +67,6 @@ static void SetupBitcoinTxArgs()
|
||||
|
||||
gArgs.AddArg("load=NAME:FILENAME", "Load JSON file FILENAME into register NAME", false, OptionsCategory::REGISTER_COMMANDS);
|
||||
gArgs.AddArg("set=NAME:JSON-STRING", "Set register NAME to given JSON-STRING", false, OptionsCategory::REGISTER_COMMANDS);
|
||||
|
||||
// Hidden
|
||||
gArgs.AddArg("-h", "", false, OptionsCategory::HIDDEN);
|
||||
gArgs.AddArg("-help", "", false, OptionsCategory::HIDDEN);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user