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

Method getHelpColumns

unittests/catch.hpp:6173–6186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6171 }
6172
6173 auto getHelpColumns() const -> std::vector<HelpColumns> {
6174 std::ostringstream oss;
6175 bool first = true;
6176 for( auto const &opt : m_optNames ) {
6177 if (first)
6178 first = false;
6179 else
6180 oss << ", ";
6181 oss << opt;
6182 }
6183 if( !m_hint.empty() )
6184 oss << " <" << m_hint << ">";
6185 return { { oss.str(), m_description } };
6186 }
6187
6188 auto isMatch( std::string const &optToken ) const -> bool {
6189 auto normalisedToken = normaliseOpt( optToken );

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected