#include "samplecoreapp.h" #include "sampleviewmodel.h" #include SampleCoreApp::SampleCoreApp(QObject *parent) : CoreApp(parent) {} int SampleCoreApp::startApp(const QStringList &arguments) { QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(); parser.addOption({ {QStringLiteral("n"), QStringLiteral("nothing")}, QStringLiteral("Pointless action") }); if(!autoParse(parser, arguments)) return EXIT_SUCCESS; show(); return EXIT_SUCCESS; }