mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add unavailable options to hidden options category
Options that are not available (but known in the source code) will cause an error if they are specified. Make these options "available" by adding them to the hidden options category to prevent conf files from failing when shared between binaries that have different options available.
This commit is contained in:
parent
7c32b414b6
commit
c2dfbb4a97
4 changed files with 47 additions and 20 deletions
|
|
@ -585,6 +585,13 @@ void ArgsManager::AddArg(const std::string& name, const std::string& help, const
|
|||
assert(ret.second); // Make sure an insertion actually happened
|
||||
}
|
||||
|
||||
void ArgsManager::AddHiddenArgs(const std::vector<std::string>& names)
|
||||
{
|
||||
for (const std::string& name : names) {
|
||||
AddArg(name, "", false, OptionsCategory::HIDDEN);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ArgsManager::GetHelpMessage()
|
||||
{
|
||||
const bool show_debug = gArgs.GetBoolArg("-help-debug", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue