On 05/09/2011 02:43 PM, Germán Diago wrote:
Hi all. I have a question regarding boost.program_options.

I want to parse a command-line but I want to know the order in which
each option appeared in the
command line. Is this possible? Thanks in advance.
I don't think [program_options] delivers this feature as it stores options in the map structure.
Option parameters are stored in vector so the order should be preserved.
Maybe positional_options_description would be the solution?

Generally, I think it is not common for programs to rely on options order.


-- 
Regards
Krzysztof J.