mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 11:12:50 +01:00
[moveonly] Extract HelpRequested to dry up the help options testing
This ensures consistency across interfaces and makes the version handling more clear.
This commit is contained in:
@@ -584,7 +584,10 @@ void ArgsManager::ForceSetArg(const std::string& strArg, const std::string& strV
|
||||
mapMultiArgs[strArg] = {strValue};
|
||||
}
|
||||
|
||||
|
||||
bool HelpRequested(const ArgsManager& args)
|
||||
{
|
||||
return args.IsArgSet("-?") || args.IsArgSet("-h") || args.IsArgSet("-help");
|
||||
}
|
||||
|
||||
static const int screenWidth = 79;
|
||||
static const int optIndent = 2;
|
||||
|
||||
Reference in New Issue
Block a user