summaryrefslogtreecommitdiffstats
path: root/src/command_line_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_line_options.cpp')
-rw-r--r--src/command_line_options.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index 4f1b4f6..bb894ce 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -2,6 +2,7 @@
#include <getopt.h>
#include <QDebug>
+
CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
// parse command line arguments (please sort by short option for easier handling)
static const struct option longOptions[] = {
@@ -25,6 +26,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
{"xpath", required_argument, NULL, 'x'},
{"location-mode", required_argument, NULL, 'locm'},
{"template-mode", required_argument, NULL, 'tmpm'},
+ {"start-uuid", required_argument, NULL, 'uuid'},
{"no-vtx", no_argument, NULL, 'nvtx'},
{0, 0, 0, 0}
};
@@ -95,6 +97,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
case 'nvtx':
options.insert("no-vtx", "no-vtx");
break;
+ case 'uuid':
+ options.insert("uuid", optarg);
+ break;
default:
options.insert("error", "error");
break;