diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-02 11:32:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-02 11:32:18 +0300 |
commit | 4bdbe020babba16748c69bc2694497fefae6ef2d (patch) | |
tree | c5a1d2fe938e8177349e0c7b8070044ea83ad5e2 | |
parent | 3f04f19a4e30eadf18e2aa18df01655de58a1ffa (diff) | |
download | plus-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.gz plus-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.bz2 plus-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.xz plus-4bdbe020babba16748c69bc2694497fefae6ef2d.zip |
fix dye cmd exit with incorrect parameters.
-rw-r--r-- | src/dyetool/dyemain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |