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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index 9ac099f..9293870 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -17,12 +17,13 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
{"debug", no_argument, NULL, 'D'},
{"version", no_argument, NULL, 'v'},
{"help", no_argument, NULL, 'h'},
+ {"runscript", no_argument, NULL, 'S'},
{0, 0, 0, 0}
};
int c;
- while ((c = getopt_long(argc, argv, "c:d:e:f:x:u:s:t:w:vhbD", longOptions, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "c:d:e:f:x:u:s:t:w:vhbDS", longOptions, NULL)) != -1) {
switch (c) {
case 'c':
options.insert("config", optarg);
@@ -60,6 +61,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
case 'h':
options.insert("usage", "usage");
break;
+ case 'S':
+ options.insert("runscript", optarg);
+ break;
case '?':
default:
options.insert("error", "error");