22 lines
504 B
C++
22 lines
504 B
C++
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QCommandLineParser>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QCommandLineParser argsParser;
|
|
argsParser.setApplicationDescription("A live heatmap creator for soapy_power");
|
|
argsParser.addHelpOption();
|
|
argsParser.addPositionalArgument("source","csv file to read data from, default stdin");
|
|
|
|
argsParser.process(a);
|
|
|
|
MainWindow w;
|
|
w.sendArgs(&argsParser);
|
|
w.show();
|
|
return a.exec();
|
|
}
|