summaryrefslogtreecommitdiffstats
path: root/src/command_line_options.cpp
diff options
context:
space:
mode:
authorNils Schwabe2014-04-04 15:00:58 +0200
committerNils Schwabe2014-04-04 15:00:58 +0200
commitfc48e4b44760d0bb432a238e4c1b986062a91311 (patch)
tree6963b3bd46f06b2a9b57b80f1f0f5c09a84dc42b /src/command_line_options.cpp
parentchanged adDUSerAndHostname() (diff)
downloadvmchooser2-fc48e4b44760d0bb432a238e4c1b986062a91311.tar.gz
vmchooser2-fc48e4b44760d0bb432a238e4c1b986062a91311.tar.xz
vmchooser2-fc48e4b44760d0bb432a238e4c1b986062a91311.zip
removed addPrinters() and addScanners
introduced "change the run-virt.sh path" in cmd line and config file
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");