Ignore:
Timestamp:
Sep 2, 2008, 5:17:32 AM (13 years ago)
Author:
Peter
Message:

fixes #418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/CommandLine.cc

    r1437 r1465  
    138138            iter->second->parse(arg, arguments.end());
    139139        }
    140        
    141         if (is_short_option(*arg)) {
    142           for (size_t i=1; i<arg->size(); ++i){
     140        else if (is_short_option(*arg)) {
     141          size_t size=arg->size();
     142          for (size_t i=1; i<size; ++i){
    143143            std::map<char, Option*>::const_iterator
    144144              iter(short_options_.find((*arg)[i]));
Note: See TracChangeset for help on using the changeset viewer.