--version argument in companion
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
#undef main
|
#undef main
|
||||||
#endif
|
#endif
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include "version.h"
|
||||||
#include "eeprominterface.h"
|
#include "eeprominterface.h"
|
||||||
#include "appdata.h"
|
#include "appdata.h"
|
||||||
|
|
||||||
@@ -87,6 +88,13 @@ int main(int argc, char *argv[])
|
|||||||
app.setOrganizationDomain("open-tx.org");
|
app.setOrganizationDomain("open-tx.org");
|
||||||
app.setAttribute(Qt::AA_DontShowIconsInMenus, false);
|
app.setAttribute(Qt::AA_DontShowIconsInMenus, false);
|
||||||
|
|
||||||
|
QStringList strl = QApplication::arguments();
|
||||||
|
if (strl.contains("--version")) {
|
||||||
|
printf("%s\n", C9X_VERSION);
|
||||||
|
fflush(stdout);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
app.setStyle(new MyProxyStyle);
|
app.setStyle(new MyProxyStyle);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user