MCPcopy Create free account
hub / github.com/catboost/catboost / AppendShortOption

Function AppendShortOption

contrib/libs/flatbuffers/src/flatc.cpp:324–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static void AppendShortOption(std::stringstream &ss,
325 const FlatCOption &option) {
326 if (!option.short_opt.empty()) {
327 ss << "-" << option.short_opt;
328 if (!option.long_opt.empty()) { ss << "|"; }
329 }
330 if (!option.long_opt.empty()) { ss << "--" << option.long_opt; }
331}
332
333std::string FlatCompiler::GetShortUsageString(
334 const std::string &program_name) const {

Callers 1

GetShortUsageStringMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected