Ticket #3498 (closed Bugs: fixed)

Opened 8 years ago

Last modified 7 years ago

program_options::command_line_style::case_insensitive doesn't work

Reported by: Roie Marianer <roie.marianer@…> Owned by: s_ochsenknecht
Milestone: Boost 1.42.0 Component: program_options
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:


It seems the case_insensitive option has been disabled since 2005. If it isn't coming back, perhaps it should be removed or commented out of the interface, as its existence there is misleading. At the very least, a "this doesn't work" comment should exist in cmdline.hpp


Change History

comment:1 Changed 7 years ago by s_ochsenknecht

Volodya, any special reason why this was removed/disabled?

Cheers, Sascha

comment:2 Changed 7 years ago by vladimir_prus


I don't recall intentionally removing this functionality. It probably has slipped while I was refactoring code.

comment:3 Changed 7 years ago by s_ochsenknecht

  • Owner changed from vladimir_prus to s_ochsenknecht
  • Status changed from new to assigned
  • Milestone changed from Boost 1.41.0 to Boost 1.42.0

comment:4 Changed 7 years ago by s_ochsenknecht

  • Status changed from assigned to closed
  • Resolution set to fixed

I reactivate the case insensitive code. Two additional style flags added: short_case_insensitive and long_case_insensitive (the existing case_insensitive flags is the combination of both).

I'm going to add some more tests, but solution is already on trunk.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.