Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2007-03-25 06:05:51


Hello.

I want to parse option that has more values.
For instance:

 options_description desc("Allowed options");
 desc.add_options()
     ("include-path,I", value< vector<string> >(), "include path");

Now I want to parse configuration file which looks like:

include-path = first/path
include-path = second
etc..

Can I have something like this instead:
include-path = first/path,second,third,..

Is this possible with program_option or I have to use ugly-way
configuration?

Thanks for help
Regards
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