50 #include <QtCore/QCoreApplication> 51 #include <QtCore/QCommandLineParser> 52 #include <QtCore/QCommandLineOption> 55 int main(
int argc,
char *argv[])
57 QCoreApplication
a(argc, argv);
60 parser.setApplicationDescription(
"PlotJuggler WebSockets client");
61 parser.addHelpOption();
63 QCommandLineOption dbgOption(QStringList() <<
"d" <<
"debug",
64 QCoreApplication::translate(
"main",
"Debug output [default: off]."));
65 parser.addOption(dbgOption);
67 bool debug = parser.isSet(dbgOption);
69 Client client(QUrl(QStringLiteral(
"ws://localhost:6666")), debug);
70 QObject::connect(&client, &
Client::closed, &a, &QCoreApplication::quit);
int main(int argc, char *argv[])