lemon/arg_parser.cc
changeset 203 215bfc30b14f
parent 128 7cd965d2257f
child 209 765619b7cbb2
equal deleted inserted replaced
2:f7ae0d736614 3:c98ef4a71b54
   192   ArgParser &ArgParser::optionGroup(const std::string &group,
   192   ArgParser &ArgParser::optionGroup(const std::string &group,
   193 				    const std::string &opt)
   193 				    const std::string &opt)
   194   {
   194   {
   195     Opts::iterator i = _opts.find(opt);
   195     Opts::iterator i = _opts.find(opt);
   196     LEMON_ASSERT(i!=_opts.end(), "Unknown option: '"+opt+"'");
   196     LEMON_ASSERT(i!=_opts.end(), "Unknown option: '"+opt+"'");
   197     if(i==_opts.end()) std::cout << "JAJJJJJJJJ\n";
       
   198     LEMON_ASSERT(!(i->second.ingroup), 
   197     LEMON_ASSERT(!(i->second.ingroup), 
   199                  "Option already in option group: '"+opt+"'");
   198                  "Option already in option group: '"+opt+"'");
   200     GroupData &g=_groups[group];
   199     GroupData &g=_groups[group];
   201     g.opts.push_back(opt);
   200     g.opts.push_back(opt);
   202     i->second.ingroup=true;
   201     i->second.ingroup=true;