This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-04 13:59:24 +02:00

22 lines
937 B
C++

#include <QCoreApplication>
#include <QCommandLineParser>
int main(int argc, char *argv[])
{
QCoreApplication application(argc, argv);
application.setOrganizationName("guh");
application.setApplicationName("nymea-gpio-tool");
application.setApplicationVersion(VERSION_STRING);
QCommandLineParser parser;
parser.addHelpOption();
QString applicationDescription = QString("\nnymea-gpio-tool is a command line tool which allowes to interact with GPIOs.\n"
"Version: %1\n"
"Copyright %2 2019 Simon Stürz <simon.stuerz@nymea.io>\n"
"Released under the GNU GENERAL PUBLIC LICENSE Version 3.").arg(application.applicationVersion()).arg(QChar(0xA9));
parser.setApplicationDescription(applicationDescription);
parser.process(application);
return application.exec();
}