Boost logo

Boost Users :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2006-04-18 12:08:40


On Fri, 14 Apr 2006 13:37:35 -0400, "Dean Sturtevant"
<deans_at_[hidden]> wrote:

>
>Let's say one has defined the following:
>
> boost::program_options::positional_options_description pdesc;
> pdesc.add("generic_name", -1);
>
>Then included it in the parse:
>
> boost::program_options::variables_map options_map;
>
> boost::program_options::basic_parsed_options<char> options =
> boost::program_options::basic_command_line_parser<char>(argc,
>argv).
> positional(pdesc).run();
> po::store(options, options_map);
> po::notify(options_map);
>
>How does one retrieve the positional options?

Isn't it just like a normal option with the name "generic_name"?


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