Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3423: Diagnostic of errors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-06 10:00:24
#3423: Diagnostic of errors.
---------------------------------------------+------------------------------
Reporter: Alex Bukreev <bucreev@â¦> | Owner: s_ochsenknecht
Type: Feature Requests | Status: closed
Milestone: Boost 1.42.0 | Component: program_options
Version: Boost 1.40.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------------------------+------------------------------
Comment(by anonymous):
Replying to [comment:5 Alex Bukreev <bucreev@â¦>]:
> 2.Source two:
> desc.add_options()
> ("cfgfile,c", value<string>()->multitoken(), "the config file")
> ("output,o", value<string>(), "the output file")
> ;
>
> const char* cmdline[] = {"program", "-c", "-o", "anotherfile"};
>
> Wrong diagnostic: "in option 'cfgfile': multiple values not allowed"
>
It detects "-o" as an option (not a value for "-c"). It now throws
invalid_command_line_syntax(invalid_syntax::missing_parameter) for
cfgfile. If "-o" should be recognized as value of "-c" it must be quoted.
Reviews are welcome :-). If set status to "closed" but if there are still
issues feel free to re-open.
Thanks,
SAscha
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3423#comment:11> 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