Boost logo

Boost Users :

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


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