[program_options] how to use case_insensitive
I am using Boost 1.33.0 and MS Visual Studio .NET 2003
(13.10.3077) and having trouble developing a simple
Win32 console application that accepts case-insensitive
command-line options.
-- output ----------------------------------
..\>app -n 2
BOOST_PROGRAM_OPTIONS_VERSION=2
count set to 2
..\>app -N 2
BOOST_PROGRAM_OPTIONS_VERSION=2
Exception caught: unknown option -N
--------------------------------------------
-- code ------------------------------------
#include
On Tue, 8 Nov 2005, Lawry, Brian wrote:
I am using Boost 1.33.0 and MS Visual Studio .NET 2003 (13.10.3077) and having trouble developing a simple Win32 console application that accepts case-insensitive command-line options.
[snip]
The line "cl_style |= cls::case_insensitive;" seems to have no effect. The other options in that section do seem to work as I can create other errors by omitting others. I tried for a minimal set of styles.
Any ideas what I'm doing wrong?
I looked in the source code, and it seems that this feature is not yet implemented. -- François Duranleau LIGUM, Université de Montréal "Any sufficiently advanced technology is indistinguishable from magic" - Arthur C. Clarke
Fran?ois Duranleau wrote:
On Tue, 8 Nov 2005, Lawry, Brian wrote:
I am using Boost 1.33.0 and MS Visual Studio .NET 2003 (13.10.3077) and having trouble developing a simple Win32 console application that accepts case-insensitive command-line options.
[snip]
The line "cl_style |= cls::case_insensitive;" seems to have no effect. The other options in that section do seem to work as I can create other errors by omitting others. I tried for a minimal set of styles.
Any ideas what I'm doing wrong?
I looked in the source code, and it seems that this feature is not yet implemented.
Unfortunately so, and moreover, it's a regression from 1.32. I'll see if I can fix this quickly. - Volodya
participants (3)
-
François Duranleau
-
Lawry, Brian
-
Vladimir Prus