summaryrefslogtreecommitdiffstats
path: root/src/client/main.cpp
diff options
context:
space:
mode:
authorChristian Klinger2016-05-30 15:15:14 +0200
committerChristian Klinger2016-05-30 15:15:14 +0200
commit712724fbefe6042c89781cae1f7b96334a9edad3 (patch)
treeb203f34b3619d174b7c01aa6212ca52656a70d75 /src/client/main.cpp
parentAdded "--exam-mode" option. (diff)
downloadpvs2-712724fbefe6042c89781cae1f7b96334a9edad3.tar.gz
pvs2-712724fbefe6042c89781cae1f7b96334a9edad3.tar.xz
pvs2-712724fbefe6042c89781cae1f7b96334a9edad3.zip
added qStdOut() (use like qDebug())
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index 602eee7..0b3bc74 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -1,6 +1,5 @@
#include "toolbar/toolbar.h"
#include "util/util.h"
-#include <iostream>
int main(int argc, char** argv)
{
@@ -22,9 +21,12 @@ int main(int argc, char** argv)
} else if (a.startsWith("--session=")) {
option_session= true;
sessionName= a.replace("--session=", "");
-
+ } else if (a == "--usage" || a == "--help") {
+ qStdout() << "Usage: pvsclient [--exam-mode] [--auto|--session=xxx|\"\"]" << endl;
+ exit(0);
} else if (!a.endsWith("pvsclient")) {
- qDebug() << "ignoring unknown argument: \"" << a << "\"";
+ qStdout() << "ignoring unknown argument: \"" << a << "\"";
+ qStdout() << "see --usage for a list of options" << endl;
}
}