aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 02d36c131d8a21456905d01457370bed3e07c151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "mainwindow.h"
#include "command_line.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QCoreApplication::setOrganizationName("ConfuSomu");
    QCoreApplication::setOrganizationDomain("twilightsparkle.space");
    QCoreApplication::setApplicationName("ActorViewer");

    QCommandLineParser parser;
    CommandLineParsedOptions result = parse_command_line(parser, app);

    MainWindow w(nullptr);
    w.show();
    w.act_command_line(result, parser);

    return app.exec();
}