blob: f804c1a625fb27ec8ec98e3ba0ab3709952054c9 (
plain) (
tree)
|
|
#include <iostream>
#include <stdlib.h>
#include "mainwindow/mainwindow.h"
#include "serverapp/serverapp.h"
using std::cout;
using std::endl;
void usage()
{
cout << "USAGE pvsmgr [OPTIONS]" << endl;
cout << "OPTIONS: " << endl;
cout << "--manager-only" << endl;
cout << " pvsmgr terminates if this computer is not a manager of a room" << endl;
cout << "--config=INIFILE" << endl;
cout << " read configuration from INIFILE instead of default path (/opt/openslx/pvs2/pvs2.ini) " << endl;
cout << "--usage" << endl;
cout << " shows this message" << endl;
}
int main(int argc, char** argv)
{
qsrand(uint(QDateTime::currentMSecsSinceEpoch()));
ServerApp app(argc, argv);
for (QString a : app.arguments()) {
if (a == "--usage" || a == "--help") {
usage();
exit(0);
} else if (a.endsWith("pvsmgr")) {
/* ignore */
} else {
qDebug() << "ignoring unknown argument: \"" << a << "\"";
}
}
return app.exec();
}
|