small cleanup
This commit is contained in:
parent
703eeef906
commit
748ac35277
@ -2000,7 +2000,6 @@ OptionParser::parse(int argc, const char** argv)
|
|||||||
auto& detail = opt.second;
|
auto& detail = opt.second;
|
||||||
const auto& value = detail->value();
|
const auto& value = detail->value();
|
||||||
|
|
||||||
//auto& store = m_results[detail];
|
|
||||||
auto& store = m_parsed[detail->hash()];
|
auto& store = m_parsed[detail->hash()];
|
||||||
|
|
||||||
if(value.has_default() && !store.count() && !store.has_default()){
|
if(value.has_default() && !store.count() && !store.has_default()){
|
||||||
@ -2039,11 +2038,8 @@ OptionParser::finalise_aliases()
|
|||||||
{
|
{
|
||||||
auto& detail = *option.second;
|
auto& detail = *option.second;
|
||||||
auto hash = detail.hash();
|
auto hash = detail.hash();
|
||||||
//if (m_parsed.find(hash) != m_parsed.end())
|
|
||||||
{
|
|
||||||
m_keys[detail.short_name()] = hash;
|
m_keys[detail.short_name()] = hash;
|
||||||
m_keys[detail.long_name()] = hash;
|
m_keys[detail.long_name()] = hash;
|
||||||
}
|
|
||||||
|
|
||||||
m_parsed.emplace(hash, OptionValue());
|
m_parsed.emplace(hash, OptionValue());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user