MCPcopy Create free account
hub / github.com/RenderKit/oidn / getHelpColumns

Method getHelpColumns

external/catch.hpp:9386–9399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9384 }
9385
9386 auto getHelpColumns() const -> std::vector<HelpColumns> {
9387 std::ostringstream oss;
9388 bool first = true;
9389 for( auto const &opt : m_optNames ) {
9390 if (first)
9391 first = false;
9392 else
9393 oss << ", ";
9394 oss << opt;
9395 }
9396 if( !m_hint.empty() )
9397 oss << " <" << m_hint << ">";
9398 return { { oss.str(), m_description } };
9399 }
9400
9401 auto isMatch( std::string const &optToken ) const -> bool {
9402 auto normalisedToken = normaliseOpt( optToken );

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected