lemon/arg_parser.cc
changeset 131 3125084667a3
parent 88 18444049848b
child 137 483bc6ed7292
equal deleted inserted replaced
1:6f1138150282 2:f7ae0d736614
   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";
   197     LEMON_ASSERT(!(i->second.ingroup), 
   198     LEMON_ASSERT(!(i->second.ingroup), 
   198                  "Option already in option group: '"+opt+"'");
   199                  "Option already in option group: '"+opt+"'");
   199     GroupData &g=_groups[group];
   200     GroupData &g=_groups[group];
   200     g.opts.push_back(opt);
   201     g.opts.push_back(opt);
   201     i->second.ingroup=true;
   202     i->second.ingroup=true;