Skip to content

Commit 1724f25

Browse files
committed
(Re)add check for no scheme specified.
1 parent 86b79d7 commit 1724f25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/ktx/command_deflate.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ void CommandDeflate::initOptions(cxxopts::Options& opts) {
137137

138138
void CommandDeflate::processOptions(cxxopts::Options& opts, cxxopts::ParseResult& args) {
139139
options.process(opts, args, *this);
140+
if (!options.zstd && !options.zlib) {
141+
fatal_usage("Must specify --{} or --{}.",
142+
OptionsCompress::kZStd, OptionsCompress::kZLib);
143+
}
140144
}
141145

142146
void CommandDeflate::executeDeflate() {

0 commit comments

Comments
 (0)