Opened 7 years ago

Closed 7 years ago

#11574 closed Bugs (fixed)

program_options: wrong option name in error message on linux

Reported by: Michael Bachmann <bachmann@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.55.0 Severity: Problem
Keywords: program_options error message option name Cc:

Description

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

Attachments (1)

wrong_option_name_in_error_message.cpp (1.8 KB ) - added by Michael Bachmann <bachmann@…> 7 years ago.
code example for reproducing the bug

Download all attachments as: .zip

Change History (4)

by Michael Bachmann <bachmann@…>, 7 years ago

code example for reproducing the bug

comment:1 by Michael Bachmann <bachmann@…>, 7 years ago

Version: Boost 1.57.0Boost 1.55.0

comment:2 by Michael Bachmann <bachmann@…>, 7 years ago

@Vladimir: Please close this Ticket.

The issue occurs with boost 1.55 and has been resolved in a later version of boost (tested with boost 1.57).

comment:3 by Vladimir Prus, 7 years ago

Resolution: fixed
Status: newclosed

Michael,

thanks for reminder, closing.

Note: See TracTickets for help on using tickets.