MCPcopy Create free account
hub / github.com/Kitware/CMake / GetHelp

Method GetHelp

Source/kwsys/CommandLineArguments.cxx:419–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419char const* CommandLineArguments::GetHelp(char const* arg)
420{
421 auto it = this->Internals->Callbacks.find(arg);
422 if (it == this->Internals->Callbacks.end()) {
423 return nullptr;
424 }
425
426 // Since several arguments may point to the same argument, find the one this
427 // one point to if this one is pointing to another argument.
428 CommandLineArgumentsCallbackStructure* cs = &(it->second);
429 for (;;) {
430 auto hit = this->Internals->Callbacks.find(cs->Help);
431 if (hit == this->Internals->Callbacks.end()) {
432 break;
433 }
434 cs = &(hit->second);
435 }
436 return cs->Help;
437}
438
439void CommandLineArguments::SetLineLength(unsigned int ll)
440{

Callers 1

testCommandLineArgumentsFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

testCommandLineArgumentsFunction · 0.64