From: APTX Date: Wed, 18 May 2011 18:56:07 +0000 (+0200) Subject: Add help message. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=a042371e8e426e66d35d47af880483cf24508d11;p=AniAddCLI.git Add help message. --- diff --git a/main.cpp b/main.cpp index e010854..0dc40a1 100644 --- 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);