From 2448ecd6b87c24fe1203b80a014432ae816a9e9f Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Wed, 3 Aug 2016 10:33:38 +0200 Subject: added --start-uuid parameter. --- src/command_line_options.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command_line_options.cpp') 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 #include + 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; -- cgit v1.2.3-55-g7522