Ignore:
Timestamp:
Oct 17, 2007, 11:03:37 PM (15 years ago)
Author:
Peter
Message:

adding Option class for argument associated with a file, and fixed minor issues

File:
1 edited

Legend:

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

    r972 r975  
    135135        }
    136136      }
    137       for_each(options_.begin(),options_.end(),std::mem_fun(&Option::validate));
     137      for_each(options_.begin(),options_.end(),
     138               std::mem_fun(&Option::validate));
    138139    }
    139140    catch (std::runtime_error& e){
    140141      std::stringstream ss;
    141       ss << program_name_ << ": " << e.what() << "\n" << try_help();
     142      ss << program_name_ << ": " << e.what();
    142143      throw std::runtime_error(ss.str());
    143144    }
Note: See TracChangeset for help on using the changeset viewer.