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

Method getArg

src/OpenLoco/src/CommandLine.cpp:269–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 std::string_view getArg(std::string_view name, size_t index = 0)
270 {
271 const auto* args = getArgs(name);
272 if (args == nullptr || index >= args->size())
273 {
274 return {};
275 }
276 return (*args)[index];
277 }
278
279 std::string_view getArg(size_t index)
280 {

Callers 1

parseCommandLineFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected