-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (22 loc) · 774 Bytes
/
main.cpp
File metadata and controls
28 lines (22 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "MainWindow/mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[]) {
if(argc == 2) {
QString arg(argv[1]);
if(arg == "-v" || arg == "--version") {
qDebug() << "" + PROHEX + " v." + PROHEX_VERSION;
qDebug() << "Copyright (c) PROPHESSOR 2018";
return 0;
} else if(arg == "-h" || arg == "--help") {
qDebug() << "" + PROHEX + " v." + PROHEX_VERSION;
qDebug() << "Copyright (c) PROPHESSOR 2018";
qDebug() << "=============================";
qDebug() << "You can get help using F1 key in the program!";
return 0;
}
}
QApplication a(argc, argv);
MainWindow w(nullptr);
w.show();
return a.exec();
}