MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / getHelpColumns

Method getHelpColumns

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5977–5990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5975 }
5976
5977 auto getHelpColumns() const -> std::vector<HelpColumns> {
5978 std::ostringstream oss;
5979 bool first = true;
5980 for (auto const &opt : m_optNames) {
5981 if (first)
5982 first = false;
5983 else
5984 oss << ", ";
5985 oss << opt;
5986 }
5987 if (!m_hint.empty())
5988 oss << " <" << m_hint << ">";
5989 return {{oss.str(), m_description}};
5990 }
5991
5992 auto isMatch(std::string const &optToken) const -> bool {
5993 auto normalisedToken = normaliseOpt(optToken);

Callers 1

getHelpColumnsMethod · 0.45

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected