[Program_options] Positional options are not parsed, "unrecognised option". A bug?
Hello, everybody.
I am having problems using Boost::Program_options library.
I have a program, that have several optional keyword arguments, and 3
positional arguments.
Keyword arguments are parsed well, but positional arguments are always
causing an exception? saying: "unrecognised option"
After spending 2 hours trying to find a problem, I decided to ask for help.
I am using Boost 1.50.0-2, GCC 4.7.2 under Arch linux (32 bit).
My example is almost exact copy from the tutorial, so I suspect that
there is some bug. Example code (with all non-relevant code removed)
follows. To test it, run it as following:
./a.out 123 123 test
Expected behaviour is to see a line:
Arguments: output=output.png width=123 height=123
Instead, I see this:
terminate called after throwing an instance of
'boost::exception_detail::clone_impl
participants (1)
-
Dmitry Shintyakov