#include <QDebug>
#include "aniaddcli.h"
+#define STRINGIFY_INTERNAL(x) #x
+#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
+
QString State2String(AniDBUdpClient::State state)
{
using namespace AniDBUdpClient;
if (opts.count("help")) {
cout << QCoreApplication::applicationName() << " v" << QCoreApplication::applicationVersion()
- << " by " << QCoreApplication::organizationName() << endl << endl;
+ << " by " << QCoreApplication::organizationName() << endl;
+ cout << "Built on " __DATE__ " at " __TIME__ " with Qt" QT_VERSION_STR ", Qxt" QXT_VERSION_STR;
+#ifdef REVISION
+ cout << endl << "\tfrom revision " STRINGIFY(REVISION) "." << endl;
+#else
+ cout << "." << endl;
+#endif
+ if (AniDBUdpClient::revision())
+ cout << "AniDBUdpClient revision " << AniDBUdpClient::revision() << "." << endl;
+ cout << "Running with Qt" << qVersion() << ", Qxt" << qxtVersion() << endl;
+ cout << endl;
opts.showUsage();
return -1;
}