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

#include <QApplication>

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

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

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

    return app.exec();
}