mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Remove unused OptionsCategory arg from AddCommand
This commit is contained in:
@@ -620,14 +620,14 @@ void ArgsManager::ForceSetArg(const std::string& strArg, const std::string& strV
|
||||
m_settings.forced_settings[SettingName(strArg)] = strValue;
|
||||
}
|
||||
|
||||
void ArgsManager::AddCommand(const std::string& cmd, const std::string& help, const OptionsCategory& cat)
|
||||
void ArgsManager::AddCommand(const std::string& cmd, const std::string& help)
|
||||
{
|
||||
Assert(cmd.find('=') == std::string::npos);
|
||||
Assert(cmd.at(0) != '-');
|
||||
|
||||
LOCK(cs_args);
|
||||
m_accept_any_command = false; // latch to false
|
||||
std::map<std::string, Arg>& arg_map = m_available_args[cat];
|
||||
std::map<std::string, Arg>& arg_map = m_available_args[OptionsCategory::COMMANDS];
|
||||
auto ret = arg_map.emplace(cmd, Arg{"", help, ArgsManager::COMMAND});
|
||||
Assert(ret.second); // Fail on duplicate commands
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ public:
|
||||
/**
|
||||
* Add subcommand
|
||||
*/
|
||||
void AddCommand(const std::string& cmd, const std::string& help, const OptionsCategory& cat);
|
||||
void AddCommand(const std::string& cmd, const std::string& help);
|
||||
|
||||
/**
|
||||
* Add many hidden arguments
|
||||
|
||||
Reference in New Issue
Block a user