We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86b79d7 commit 1724f25Copy full SHA for 1724f25
tools/ktx/command_deflate.cpp
@@ -137,6 +137,10 @@ void CommandDeflate::initOptions(cxxopts::Options& opts) {
137
138
void CommandDeflate::processOptions(cxxopts::Options& opts, cxxopts::ParseResult& args) {
139
options.process(opts, args, *this);
140
+ if (!options.zstd && !options.zlib) {
141
+ fatal_usage("Must specify --{} or --{}.",
142
+ OptionsCompress::kZStd, OptionsCompress::kZLib);
143
+ }
144
}
145
146
void CommandDeflate::executeDeflate() {
0 commit comments