diff options
author | Nils Schwabe | 2014-04-04 15:00:58 +0200 |
---|---|---|
committer | Nils Schwabe | 2014-04-04 15:00:58 +0200 |
commit | fc48e4b44760d0bb432a238e4c1b986062a91311 (patch) | |
tree | 6963b3bd46f06b2a9b57b80f1f0f5c09a84dc42b /src/command_line_options.cpp | |
parent | changed adDUSerAndHostname() (diff) | |
download | vmchooser2-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.cpp | 6 |
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"); |