summaryrefslogtreecommitdiff
path: root/src
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
parent732c2012ec337bfebb1a12c1822e98e5c61e79bc (diff)
downloadmanaplus-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.gz
manaplus-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.bz2
manaplus-aa5193d09e385ab4ae3860f311b0af0cacca0efc.tar.xz
manaplus-aa5193d09e385ab4ae3860f311b0af0cacca0efc.zip
Fix showing help for dyecmd from command line.
Example: ./src/dyecmd --help
Diffstat (limited to 'src')
-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);
}