if (Options.count(name))
Options[name] = value;
- // UCI dialects do not allow spaces
+ // Deal with option name aliases in UCI dialects
else if (is_valid_option(Options, name))
Options[name] = value;
else
std::string protocol = options["Protocol"];
for (const auto& it : options)
{
- if (options.key_comp()(option_name(it.first, protocol), name))
+ std::string optionName = option_name(it.first, protocol);
+ if (!options.key_comp()(optionName, name) && !options.key_comp()(name, optionName))
{
name = it.first;
return true;