Boost logo

Boost Users :

From: Dean Sturtevant (deans_at_[hidden])
Date: 2006-04-14 13:37:35


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?

- Dean


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