MCPcopy Create free account
hub / github.com/apache/trafficserver / getHelpColumns

Method getHelpColumns

lib/catch2/catch.hpp:9397–9410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9395 }
9396
9397 auto getHelpColumns() const -> std::vector<HelpColumns> {
9398 std::ostringstream oss;
9399 bool first = true;
9400 for( auto const &opt : m_optNames ) {
9401 if (first)
9402 first = false;
9403 else
9404 oss << ", ";
9405 oss << opt;
9406 }
9407 if( !m_hint.empty() )
9408 oss << " <" << m_hint << ">";
9409 return { { oss.str(), m_description } };
9410 }
9411
9412 auto isMatch( std::string const &optToken ) const -> bool {
9413 auto normalisedToken = normaliseOpt( optToken );

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected