MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / HasOption

Method HasOption

Util/src/CommandLine.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool CommandLineTargetOptions::HasOption(std::string_view name) {
15 auto it = _args.find(name);
16 if (it == _args.end()) {
17 return false;
18 }
19
20 return it->second.HasOption;
21}
22
23CommandLine::CommandLine()
24 : _options(nullptr) {

Callers 3

InitFormatFunction · 0.80
InitCheckFunction · 0.80
InitRangeFormatFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected