Re: [Boost-bugs] [Boost C++ Libraries] #3423: Diagnostic of errors.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3423: Diagnostic of errors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-05 08:08:56


#3423: Diagnostic of errors.
---------------------------------------------+------------------------------
  Reporter: Alex Bukreev <bucreev@…> | Owner: s_ochsenknecht
      Type: Feature Requests | Status: assigned
 Milestone: Boost 1.42.0 | Component: program_options
   Version: Boost 1.40.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+------------------------------

Comment(by s_ochsenknecht):

 Replying to [comment:5 Alex Bukreev <bucreev@…>]:
> While testing of “error” classes were detected the following:
> 1.Source one:
> options_description desc;
> desc.add_options()
> ("cfgfile,c", value<string>()->multitoken(), "the config file")
> ("output,c", value<string>(), "the output file")
> ("output,o", value<string>(), "the output file")
> ;
>
> const char* cmdline[] = {"program", "-c", "file", "-o",
 "anotherfile"};

 Just checkin a solution which throws ambiguous_option exception. This is
 thrown during parsing of commandline, not during add_options().

 Cheers,
 Sascha

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3423#comment:9>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC