[Boost-bugs] [Boost C++ Libraries] #7256: wrong error message for program options with dashes

Subject: [Boost-bugs] [Boost C++ Libraries] #7256: wrong error message for program options with dashes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-21 13:01:49


#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.50.0 | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 Hi,
 I defined some options:

 {{{
 optionsDescription.add_options()
      ....
     ("output-file,o", program_options::value<std::string>(), "Result
 file")
      ....;
 }}}

 Now, when I start my program without an argument (e.g. ./myprog -o) the
 error message says:

 the required argument for option '--file' is missing

 instead of

 the required argument for option '--output-file' is missing

 This worked at least with version 1.48.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7256>
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:10 UTC