Boost logo

Boost Users :

From: Booster Booster (boost.newbie_at_[hidden])
Date: 2006-09-15 18:56:37


Never mind...wasn't thinking straight then. 'options' is a map after all

Guess, its the friday evening effect ! :)

On 9/15/06, Booster Booster < boost.newbie_at_[hidden]> wrote:
>
> Hi,
>
> I have a list of options that I want to store before parsing the
> command line option.
>
> For example,
>
> po::options_description desc; // This has a couple of options.
> boost::program_options::variable_map options;
> po::store(po::command_line_parser(command_args).options(desc).run(),
> options);
>
> The problem is I want to execute the methods that correspond to 'desc'
> before the methods required by 'command_args' . Is there a way to populate
> the variable_map in a way such that I get the required sequence ?
>
> I did some reading of the docs, but couldn't find a way to do it.
>
> Any help would be appreciated.
>
> Thanks in advance,
> Sandy.
>
>



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