Changeset 3323 for code/trunk/src/core/CommandLine.cc
- Timestamp:
- Jul 19, 2009, 3:11:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/CommandLine.cc
r3280 r3323 332 332 Parses only the command line for CommandLineArguments. 333 333 */ 334 void CommandLine::_parseCommandLine( int argc, char** argv)334 void CommandLine::_parseCommandLine(const std::string& cmdLine) 335 335 { 336 336 std::vector<std::string> args; 337 for (int i = 1; i < argc; ++i) 338 args.push_back(argv[i]); 337 SubString tokens(cmdLine, " ", " ", false, '\\', true, '"', true, '(', ')', false); 338 for (unsigned i = 0; i < tokens.size(); ++i) 339 args.push_back(tokens[i]); 339 340 this->_parse(args, false); 340 341 } … … 363 364 //if (!(line[0] == '#' || line[0] == '%')) 364 365 //{ 365 SubString tokens(line, " ", " ", false, 92, false, 34, false, 40, 41, false, '#');366 SubString tokens(line, " ", " ", false, '\\', true, '"', true, '(', ')', false, '#'); 366 367 for (unsigned i = 0; i < tokens.size(); ++i) 367 368 if (tokens[i][0] != '#')
Note: See TracChangeset
for help on using the changeset viewer.