summaryrefslogtreecommitdiff
path: root/src/dyetool/dyemain.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-24 23:18:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-24 23:18:31 +0300
commitaa5193d09e385ab4ae3860f311b0af0cacca0efc (patch)
treee77bb2322d88fb43d402ee6fd4c0e1c365e63c50 /src/dyetool/dyemain.cpp
parent732c2012ec337bfebb1a12c1822e98e5c61e79bc (diff)
downloadmanaverse-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.gz
manaverse-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.bz2
manaverse-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.xz
manaverse-aa5193d09e385ab4ae3860f311b0af0cacca0efc.zip
Fix showing help for dyecmd from command line.
Example: ./src/dyecmd --help
Diffstat (limited to 'src/dyetool/dyemain.cpp')
-rw-r--r--src/dyetool/dyemain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp
index 84334ec21..1b8666aee 100644
--- a/src/dyetool/dyemain.cpp
+++ b/src/dyetool/dyemain.cpp
@@ -51,7 +51,7 @@ static void printHelp()
int main(int argc, char **argv)
{
- if (argc == 2)
+ if (argc == 2 && strcmp(argv[1], "--help"))
{
return mainGui(argc, argv);
}