File indexing completed on 2024-04-14 15:37:38

0001 /*
0002  *  SPDX-FileCopyrightText: 2014 Sebastian Kügler <sebas@kde.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "testpnp.h"
0008 
0009 #include <QCommandLineParser>
0010 #include <QGuiApplication>
0011 
0012 using namespace KScreen;
0013 
0014 int main(int argc, char **argv)
0015 {
0016     QGuiApplication app(argc, argv);
0017 
0018     QCommandLineOption input =
0019         QCommandLineOption(QStringList() << QStringLiteral("m") << QStringLiteral("monitor"), QStringLiteral("Keep running monitoring for changes"));
0020     QCommandLineParser parser;
0021     parser.addHelpOption();
0022     parser.addOption(input);
0023     parser.process(app);
0024 
0025     new TestPnp(parser.isSet(input));
0026     return app.exec();
0027 }