[Boost-bugs] [Boost C++ Libraries] #11574: program_options: wrong option name in error message on linux

Subject: [Boost-bugs] [Boost C++ Libraries] #11574: program_options: wrong option name in error message on linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-24 14:15:34


#11574: program_options: wrong option name in error message on linux
-------------------------------------------------+-------------------------
 Reporter: Michael Bachmann <bachmann@…> | Owner:
     Type: Bugs | vladimir_prus
Milestone: To Be Determined | Status: new
  Version: Boost 1.57.0 | Component:
 Keywords: program_options error message | program_options
  option name | Severity: Problem
-------------------------------------------------+-------------------------
 To reproduce (bug occurs only on Linux):

 - compile the attached code sample
 - call the executable as follows
 {{{
 ./wrong_option_name_in_error_message --enable-debug --enable-debug
 }}}

 '''OK''': On Windows (Visual Studio 12 2013) the option name '--enable-
 debug' is contained as expected in the error message:
 {{{
 option '--enable-debug' cannot be specified more than once
 }}}

 '''BUG''': On Linux (gcc 4.7.2) only the last part of the option name
 '--enable-debug' (=> '--debug') is contained in the error message:
 {{{
 option '--debug' cannot be specified more than once
 }}}

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