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

Method FindLongOption

library/cpp/getopt/small/last_getopt_opts.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 const TOpt* TOpts::FindLongOption(const TStringBuf& name) const {
108 for (const auto& Opt : Opts_) {
109 const TOpt* opt = Opt.Get();
110 if (IsIn(opt->GetLongNames(), name))
111 return opt;
112 }
113 return nullptr;
114 }
115
116 TOpt* TOpts::FindLongOption(const TStringBuf& name) {
117 for (auto& Opt : Opts_) {

Callers 5

GenerateOptCompletionMethod · 0.80
ParseOptArgMethod · 0.80
SeenMethod · 0.80
HandleErrorMethod · 0.80

Calls 2

IsInFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected