MCPcopy Create free account
hub / github.com/bfgroup/Lyra / get_usage_text

Method get_usage_text

include/lyra/cli.hpp:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 mutable exe_name m_exeName;
171
172 std::string get_usage_text(const option_style & style) const override
173 {
174 if (!m_exeName.name().empty())
175 return m_exeName.name() + " " + arguments::get_usage_text(style);
176 else
177 // We use an empty exe name as an indicator to remove USAGE text.
178 return "";
179 }
180};
181
182/* tag::reference[]

Callers 1

mainFunction · 0.45

Calls 2

emptyMethod · 0.45
nameMethod · 0.45

Tested by 1

mainFunction · 0.36