Ticket #1209: program_options_options_description.diff
File program_options_options_description.diff, 1.1 KB (added by , 15 years ago) |
---|
-
options_description.cpp
254 254 return m_options; 255 255 } 256 256 257 const option_description* 257 const option_description* 258 258 options_description::find_nothrow(const std::string& name, 259 259 bool approx) const 260 260 { … … 279 279 // 280 280 // For now, we don't check the situation when there are 281 281 // two full matches. 282 282 283 283 if (r == option_description::full_match) 284 284 { 285 return m_options[i].get(); 285 return m_options[i].get(); 286 286 } 287 287 288 288 found = m_options[i]; … … 293 293 if (approximate_matches.size() > 1) 294 294 boost::throw_exception( 295 295 ambiguous_option(name, approximate_matches)); 296 else 297 296 297 return found.get(); 298 298 } 299 299 300 300 BOOST_PROGRAM_OPTIONS_DECL