Thanks Ryan, this should work for me.
-Sanjit
Sanjit Jhala <sjhalaz <at> gmail.com> writes:Have you tried sending a std::vector<std::string> as the option value?
> Say I want to specify a list of servers via the boost program_options
> library. Something like:
> --total-servers N --server srv1 --server srv2 ... --server srvN
> How would I do this?
("server", po::value< vector<string> >()
See the "Option Details" section in the tutorial:
http://tinyurl.com/yd95h2r
HTH,
-Ryan
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users