summaryrefslogtreecommitdiff
path: root/src/dyetool
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-02 11:32:18 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-02 11:32:18 +0300
commit4bdbe020babba16748c69bc2694497fefae6ef2d (patch)
treec5a1d2fe938e8177349e0c7b8070044ea83ad5e2 /src/dyetool
parent3f04f19a4e30eadf18e2aa18df01655de58a1ffa (diff)
downloadmanaverse-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.gz
manaverse-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.bz2
manaverse-4bdbe020babba16748c69bc2694497fefae6ef2d.tar.xz
manaverse-4bdbe020babba16748c69bc2694497fefae6ef2d.zip
fix dye cmd exit with incorrect parameters.
Diffstat (limited to 'src/dyetool')
-rw-r--r--src/dyetool/dyemain.cpp3
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);