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

Method process

tools/ktx/command.h:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 void process(cxxopts::Options& opts, cxxopts::ParseResult& args, Reporter& report) {
177 testrun = args["testrun"].as<bool>();
178
179 if (args.count("help")) {
180 fmt::print("{}: {}\n", report.commandName, report.commandDescription);
181 fmt::print("{}", opts.help());
182 throw FatalError(rc::SUCCESS);
183 }
184
185 if (args.count("version")) {
186 fmt::print("{} version: {}\n", opts.program(), version(testrun));
187 throw FatalError(rc::SUCCESS);
188 }
189 }
190};
191
192enum class OutputFormat {

Callers

nothing calls this directly

Calls 5

FatalErrorClass · 0.85
versionFunction · 0.85
helpMethod · 0.80
printFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected