summaryrefslogtreecommitdiffstats
path: root/src/client/main.cpp
diff options
context:
space:
mode:
authorChristian Klinger2016-09-27 16:22:06 +0200
committerChristian Klinger2016-09-27 16:22:06 +0200
commit4c35ed7f24244c651afea6e7b9e577e2be84c905 (patch)
tree6535e84d4184ce6d706a9542cf55afcd595392a7 /src/client/main.cpp
parentMerge branch 'master' of git.openslx.org:pvs2 (diff)
downloadpvs2-4c35ed7f24244c651afea6e7b9e577e2be84c905.tar.gz
pvs2-4c35ed7f24244c651afea6e7b9e577e2be84c905.tar.xz
pvs2-4c35ed7f24244c651afea6e7b9e577e2be84c905.zip
improved option parsing.
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index 8f256d7..2730475 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -12,6 +12,11 @@ int main(int argc, char** argv)
if (a == "--usage" || a == "--help") {
qStdout() << "Usage: pvsclient [--exam-mode] [--auto|--session=xxx|\"\"]" << endl;
exit(0);
+ } else if (a.contains("pvsclient")) {
+ /* do nothing */
+ } else {
+ qStdout() << "Unknown argument: " << a << endl;
+ exit(1);
}
}
return app.exec();