MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / parse_default

Method parse_default

Source/Utils/cxxopts.hpp:2146–2154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2144}
2145
2146inline
2147void
2148OptionParser::parse_default(const std::shared_ptr<OptionDetails>& details)
2149{
2150 // TODO: remove the duplicate code here
2151 auto& store = m_parsed[details->hash()];
2152 store.parse_default(details);
2153 m_defaults.emplace_back(details->long_name(), details->value().get_default_value());
2154}
2155
2156inline
2157void

Callers

nothing calls this directly

Calls 3

hashMethod · 0.80
get_default_valueMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected