diff options
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r-- | src/cli/compress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index 93bc76eb4..b0d0144d5 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -37,7 +37,7 @@ void do_compress(Transform& comp, std::ifstream& in, std::ostream& out) int compress(const std::vector<std::string> &args) { - if(args.size() != 2 && args.size() != 3 && args.size() != 4) + if(args.size() < 2 || args.size() > 4) { std::cout << "Usage: " << args[0] << " input [type] [level]" << std::endl; return 1; |