MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getHelpColumns

Method getHelpColumns

test/expected/catch.hpp:9329–9342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9327 }
9328
9329 auto getHelpColumns() const -> std::vector<HelpColumns> {
9330 std::ostringstream oss;
9331 bool first = true;
9332 for( auto const &opt : m_optNames ) {
9333 if (first)
9334 first = false;
9335 else
9336 oss << ", ";
9337 oss << opt;
9338 }
9339 if( !m_hint.empty() )
9340 oss << " <" << m_hint << ">";
9341 return { { oss.str(), m_description } };
9342 }
9343
9344 auto isMatch( std::string const &optToken ) const -> bool {
9345 auto normalisedToken = normaliseOpt( optToken );

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected