summaryrefslogtreecommitdiffstats
path: root/src/command_line_options.cpp
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-07-13 11:18:13 +0200
committerSebastian Schmelzer2011-07-13 11:18:13 +0200
commit0451c3677dbd6cdac99521e59f90dca16f8739b2 (patch)
tree0bbf7466b9d03d23d483780690addb193785667d /src/command_line_options.cpp
parentupdate win7 logo (diff)
downloadvmchooser-0451c3677dbd6cdac99521e59f90dca16f8739b2.tar.gz
vmchooser-0451c3677dbd6cdac99521e59f90dca16f8739b2.tar.xz
vmchooser-0451c3677dbd6cdac99521e59f90dca16f8739b2.zip
fix problems with unreadable files
cleaned up debug messages changed pools parameter to env
Diffstat (limited to 'src/command_line_options.cpp')
-rw-r--r--src/command_line_options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index c698315..1cf1194 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -7,8 +7,8 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
static const struct option longOptions[] = {
{"config", required_argument, NULL, 'c'},
{"default", required_argument, NULL, 'd'},
+ {"env", required_argument, NULL, 'e'},
{"file", required_argument, NULL, 'f'},
- {"pool", required_argument, NULL, 'P'},
{"path", required_argument, NULL, 'p'},
{"xpath", required_argument, NULL, 'x'},
{"size", required_argument, NULL, 's'},
@@ -22,7 +22,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
int c;
- while ((c = getopt_long(argc, argv, "c:d:f:P:p:x:s:t:w:vhbD", longOptions, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "c:d:e:f:p:x:s:t:w:vhbD", longOptions, NULL)) != -1) {
switch (c) {
case 'c':
options.insert("config", optarg);
@@ -36,8 +36,8 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) {
case 'D':
options.insert("debugMode", "debugMode");
break;
- case 'P':
- options.insert("pool", optarg);
+ case 'e':
+ options.insert("env", optarg);
break;
case 'p':
options.insert("path", optarg);