|
Boost Users : |
Subject: Re: [Boost-users] [Boost][program-options] Original position of an argument in command-line.
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2011-05-10 02:45:04
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.
parse_command_line returns vector< basic_option<charT> >, which
are in the order of occurence. This is a point where you can do
logic based on the order. variables_map does not store order
information.
HTH,
-- Vladimir Prus Mentor Graphics +7 (812) 677-68-40
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