2013-06-24 15:23:45 +02:00
|
|
|
/*
|
2020-08-13 21:08:54 +02:00
|
|
|
SPDX-FileCopyrightText: 2008 Aaron Seigo <aseigo@kde.org>
|
|
|
|
SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2013-06-24 15:23:45 +02:00
|
|
|
|
2020-07-08 07:44:43 +02:00
|
|
|
#include <KLocalizedString>
|
|
|
|
#include <QCommandLineOption>
|
2021-03-05 19:15:32 +01:00
|
|
|
#include <QCommandLineParser>
|
2013-06-24 15:23:45 +02:00
|
|
|
|
|
|
|
#include "plugintest.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QCommandLineParser *parser = new QCommandLineParser;
|
|
|
|
Plasma::PluginTest app(argc, argv, parser);
|
|
|
|
|
|
|
|
const QString description = i18n("Plugin test app");
|
2017-12-02 15:12:40 +01:00
|
|
|
const QString version = QStringLiteral("2.0");
|
2013-06-24 15:23:45 +02:00
|
|
|
|
|
|
|
app.setApplicationVersion(version);
|
|
|
|
parser->addVersionOption();
|
2013-08-28 21:08:23 +02:00
|
|
|
parser->setApplicationDescription(description);
|
2013-06-24 15:23:45 +02:00
|
|
|
|
2021-03-05 19:15:32 +01:00
|
|
|
parser->addOption(QCommandLineOption(QStringList() << QStringLiteral("s") << QStringLiteral("show"),
|
|
|
|
i18nc("Do not translate <name>", "Show plugins"),
|
|
|
|
QStringLiteral("name")));
|
2013-06-24 15:23:45 +02:00
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|