2024-03-19 20:42:32 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
2024-03-23 09:25:50 +00:00
|
|
|
#include <QCommandLineParser>
|
2024-03-19 20:42:32 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
2024-03-23 09:25:50 +00:00
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
|
|
|
QCommandLineParser cli_parser;
|
|
|
|
cli_parser.addHelpOption();
|
|
|
|
cli_parser.addVersionOption();
|
|
|
|
|
|
|
|
QCommandLineOption devModeOption({"d", "dev"}, "Run in dev mode");
|
|
|
|
cli_parser.addOption(devModeOption);
|
|
|
|
|
|
|
|
QCommandLineOption incrementalSearchOption({"i", "incremental"},
|
|
|
|
"Enable incremental search");
|
|
|
|
cli_parser.addOption(incrementalSearchOption);
|
|
|
|
|
|
|
|
cli_parser.process(app);
|
|
|
|
|
|
|
|
MainWindow main_window(nullptr, cli_parser.isSet(incrementalSearchOption),
|
|
|
|
cli_parser.isSet(devModeOption));
|
|
|
|
main_window.show();
|
|
|
|
return app.exec();
|
2024-03-19 20:42:32 +00:00
|
|
|
}
|