MCPcopy Create free account
hub / github.com/Profactor/cv-plot / getHelpColumns

Method getHelpColumns

CvPlot/ext/catch2/inc/catch.hpp:9311–9324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9309 }
9310
9311 auto getHelpColumns() const -> std::vector<HelpColumns> {
9312 std::ostringstream oss;
9313 bool first = true;
9314 for( auto const &opt : m_optNames ) {
9315 if (first)
9316 first = false;
9317 else
9318 oss << ", ";
9319 oss << opt;
9320 }
9321 if( !m_hint.empty() )
9322 oss << " <" << m_hint << ">";
9323 return { { oss.str(), m_description } };
9324 }
9325
9326 auto isMatch( std::string const &optToken ) const -> bool {
9327 auto normalisedToken = normaliseOpt( optToken );

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected