MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / processOptions

Method processOptions

utils/ktxapp.h:338–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 virtual void processOptions(argparser& parser) {
339 int opt;
340 while ((opt = parser.getopt(&short_opts, option_list.data(), NULL)) != -1) {
341 switch (opt) {
342 case 0:
343 break;
344 case 10000:
345 break;
346 case 'h':
347 usage();
348 exit(0);
349 case 'v':
350 printVersion();
351 exit(0);
352 case ':':
353 error("missing required option argument.");
354 usage();
355 exit(0);
356 default:
357 if (!processOption(parser, opt)) {
358 usage();
359 exit(1);
360 }
361 }
362 }
363#if defined(_WIN32) && defined(DEBUG)
364 if (options.launchDebugger)
365 launchDebugger();
366#endif
367 }
368
369 virtual bool processOption(argparser& parser, int opt) = 0;
370

Callers

nothing calls this directly

Calls 3

errorFunction · 0.85
getoptMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected