blob: 7ae0466adb0cb1cd195e3cb25780c3be9e143628 (
plain) (
tree)
|
|
#include "serverapp/serverapp.h"
#include <QDebug>
void usage()
{
puts(
"USAGE pvsmgr [OPTIONS]\n"
"OPTIONS: \n"
"--manager-only\n"
" pvsmgr terminates if this computer is not a manager of a room\n"
"--config=INIFILE\n"
" read configuration from INIFILE instead of default path (/opt/openslx/pvs2/pvs2.ini) \n"
"--usage\n"
" shows this message\n"
);
}
int main(int argc, char** argv)
{
ServerApp app(argc, argv);
if (app.shouldExit())
return 0;
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();
}
|