Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2008-07-15 15:29:39


Hello

I want to use boost.program_options to parse commands for my program
(console application)

What I want to do is to be able to pass std::vector<std::string> of
arguments or std::string (line) to parse_command_line(ac, av, desc); instead
of char *argv, int argc.

How is that possible?

I've been looking at basic_command_line_parser class but couldnt figure out
how it would be possible to do that, since converting string/vector of
strings to array of char pointers would be really stupid.

Many thanks for help

Aljaz


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