equal
deleted
inserted
replaced
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; |