Author: rgrieder
Date: 2010-08-30 23:45:44 +0200 (Mon, 30 Aug 2010)
New Revision: 7275
Modified:
code/branches/consolecommands3/src/libraries/core/CommandLineParser.cc
Log:
Command line parser should not care about any parentheses at all.
Modified: code/branches/consolecommands3/src/libraries/core/CommandLineParser.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/CommandLineParser.cc 2010-08-30 21:21:15 UTC (rev 7274)
+++ code/branches/consolecommands3/src/libraries/core/CommandLineParser.cc 2010-08-30 21:45:44 UTC (rev 7275)
@@ -334,7 +334,7 @@
void CommandLineParser::_parseCommandLine(const std::string& cmdLine)
{
std::vector<std::string> args;
- SubString tokens(cmdLine, " ", " ", false, '\\', true, '"', true, '(', ')', false);
+ SubString tokens(cmdLine, " ", " ", false, '\\', true, '"', true, '\0', '\0', false);
for (unsigned i = 0; i < tokens.size(); ++i)
args.push_back(tokens[i]);
this->_parse(args, false);
@@ -362,7 +362,7 @@
line = removeTrailingWhitespaces(line);
//if (!(line[0] == '#' || line[0] == '%'))
//{
- SubString tokens(line, " ", " ", false, '\\', true, '"', true, '(', ')', false, '#');
+ SubString tokens(line, " ", " ", false, '\\', true, '"', true, '\0', '\0', false, '#');
for (unsigned i = 0; i < tokens.size(); ++i)
if (tokens[i][0] != '#')
args.push_back(tokens[i]);