summaryrefslogtreecommitdiffstats
path: root/src/command_line_options.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-01 15:50:05 +0200
committerSimon Rettberg2016-09-01 15:50:05 +0200
commit9c9439e3892cc9da7a3803c290f766f1f8196e18 (patch)
treeb8fe9c7a38adf4ef4d009899dd30f60dfda3876b /src/command_line_options.cpp
parentPass lecture uuid as SESSION_UUID if applicable (diff)
downloadvmchooser2-9c9439e3892cc9da7a3803c290f766f1f8196e18.tar.gz
vmchooser2-9c9439e3892cc9da7a3803c290f766f1f8196e18.tar.xz
vmchooser2-9c9439e3892cc9da7a3803c290f766f1f8196e18.zip
Support telling server whether we are in exam mode
Diffstat (limited to 'src/command_line_options.cpp')
-rw-r--r--src/command_line_options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index bb894ce..9b00080 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -11,6 +11,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
{"config", required_argument, NULL, 'c'},
{"debug", no_argument, NULL, 'D'},
{"default", required_argument, NULL, 'd'},
+ {"exam-mode", no_argument, NULL, 'exms'},
{"fullscreen", no_argument, NULL, 'F'},
{"file", required_argument, NULL, 'f'},
{"help", no_argument, NULL, 'h'},
@@ -51,6 +52,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
case 'F':
options.insert("fullscreen", "fullscreen");
break;
+ case 'exms':
+ options.insert("exam-mode", "yo");
+ break;
case 'f':
options.insert("file", optarg);
break;