Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost][program-options] Original position of an argument in command-line.
From: Krzysztof (kj_at_[hidden])
Date: 2011-05-09 16:39:44


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.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net