]> Some of my projects - AniAddCLI.git/commitdiff
Add help message.
authorAPTX <marek321@gmail.com>
Wed, 18 May 2011 18:56:07 +0000 (20:56 +0200)
committerAPTX <marek321@gmail.com>
Wed, 18 May 2011 18:56:07 +0000 (20:56 +0200)
main.cpp

index e010854ce6a1cae648b5fb2ec21d479f86c2c3af..0dc40a1c7f7f39304382ab5ba86794e55895e456 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -273,6 +273,11 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (qApp->arguments().count() < 2)
+       {
+               std::cout << "Try " << qApp->arguments()[0].toUtf8().constData() << " -help for usage." << std::endl;
+       }
+
        AniAddCli t;
        t.setState(state);