aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/compress.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-12-12 00:40:40 +0100
committerSimon Warta <[email protected]>2015-12-12 00:40:40 +0100
commitb457eb9fa218598dd25ccaaa62e4983871cff9bd (patch)
tree13465538b70685a77143a64ebf942de4055360a2 /src/cli/compress.cpp
parent9eaf1b166ff0e99172ccccfea5d6c04adb49b46e (diff)
Improve some argument checks and usage messages of cli apps
See also #354
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r--src/cli/compress.cpp2
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;