MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FindOption

Function FindOption

src/openrct2/command_line/CommandLine.cpp:503–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 }
502
503 const CommandLineOptionDefinition* FindOption(const CommandLineOptionDefinition* options, char shortName)
504 {
505 for (const CommandLineOptionDefinition* option = options; option->Type != 255; option++)
506 {
507 if (option->ShortName == shortName)
508 {
509 return option;
510 }
511 }
512 return nullptr;
513 }
514
515 const CommandLineOptionDefinition* FindOption(const CommandLineOptionDefinition* options, const char* longName)
516 {

Callers 2

ParseLongOptionFunction · 0.85
ParseShortOptionFunction · 0.85

Calls 1

equalsFunction · 0.85

Tested by

no test coverage detected