mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-31 08:13:52 +02:00
util: Add SetupHelpOptions()
This commit is contained in:
@@ -635,6 +635,12 @@ bool HelpRequested(const ArgsManager& args)
|
||||
return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help") || args.IsArgSet("-help-debug");
|
||||
}
|
||||
|
||||
void SetupHelpOptions(ArgsManager& args)
|
||||
{
|
||||
args.AddArg("-?", "Print this help message and exit", false, OptionsCategory::OPTIONS);
|
||||
args.AddHiddenArgs({"-h", "-help"});
|
||||
}
|
||||
|
||||
static const int screenWidth = 79;
|
||||
static const int optIndent = 2;
|
||||
static const int msgIndent = 7;
|
||||
|
||||
@@ -295,6 +295,9 @@ extern ArgsManager gArgs;
|
||||
*/
|
||||
bool HelpRequested(const ArgsManager& args);
|
||||
|
||||
/** Add help options to the args manager */
|
||||
void SetupHelpOptions(ArgsManager& args);
|
||||
|
||||
/**
|
||||
* Format a string to be used as group of options in help messages
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user