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

Method init

tools/ktx/command_patch.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void CommandPatch::Options::init(cxxopts::Options& opts) {
143 opts.add_options()
144#if SUPPORT_LIBKTX_OPTION
145 (kChangeWriter, "Change KTXwriter metadata to show this program. Only usable when making sized.")
146#endif
147 (kOperation, "The patch operation to perform. It must be one of:"
148 "\n make-sized"
149 "\n make-unsized",
150 cxxopts::value<std::string>(), "<operation>")
151 (kVerbose, "Print a warning if the input file is not supercompressed.");
152}
153
154void CommandPatch::Options::process(cxxopts::Options&,
155 cxxopts::ParseResult& args,

Callers 3

initOptionsMethod · 0.45
initOptionsMethod · 0.45

Calls 1

add_optionsMethod · 0.80

Tested by

no test coverage detected