MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / parseStringArg

Function parseStringArg

src/bzfs/CmdLineOptions.cpp:357–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355
356
357static std::string parseStringArg(int& i, const std::vector<std::string>& tokens,
358 int offset = 0) {
359 if ((i + 1) >= (int)tokens.size()) {
360 std::cerr << "ERROR: string argument expected for "
361 << tokens[i - offset] << std::endl;
362 usage("bzfs");
363 }
364 i++; // skip the option argument string
365 return tokens[i];
366}
367
368
369//============================================================================//

Callers 1

parseMethod · 0.85

Calls 2

usageFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected