From 0451c3677dbd6cdac99521e59f90dca16f8739b2 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 13 Jul 2011 11:18:13 +0200 Subject: fix problems with unreadable files cleaned up debug messages changed pools parameter to env --- src/command_line_options.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command_line_options.cpp') 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); -- cgit v1.2.3-55-g7522