Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7256: wrong error message for program options with dashes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-19 17:52:14
#7256: wrong error message for program options with dashes
-------------------------------+-----------------------------
Reporter: thomas.zuhl@⦠| Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------------
Changes (by Georg Sauthoff <mail@â¦>):
* cc: mail@⦠(added)
* version: Boost 1.50.0 => Boost 1.53.0
Comment:
I can reproduce this issue with boost 1.53.
Using a small example (cf. attachment):
{{{
./minipo --foo-1 dd
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>
>'
what(): the argument ('dd') for option '--1' is invalid
}}}
Where the options are defined as:
{{{
./minipo --help
Options:
--help this help screen
--foo-1 arg foo
--bar-2 arg bar
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7256#comment:1> 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:15 UTC