From 4bdbe020babba16748c69bc2694497fefae6ef2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Nov 2013 11:32:18 +0300 Subject: fix dye cmd exit with incorrect parameters. --- src/dyetool/dyemain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index fe7ad0588..7952f841c 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -54,7 +54,10 @@ static void printHelp() int main(int argc, char **argv) { if (argc < 3 || argc > 4) + { printHelp(); + return 1; + } logger = new Logger; logger->setLogToStandardOut(false); -- cgit v1.2.3-70-g09d2