
15 Sep
2006
15 Sep
'06
10:35 p.m.
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.