MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / hasOption

Method hasOption

src/OpenLoco/src/CommandLine.cpp:245–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 bool hasOption(std::string_view name)
246 {
247 for (auto& r : _values)
248 {
249 if (std::get<0>(r) == name)
250 {
251 return true;
252 }
253 }
254 return false;
255 }
256
257 const std::vector<std::string_view>* getArgs(std::string_view name)
258 {

Callers 1

parseCommandLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected