
22 Dec
2009
22 Dec
'09
12:37 a.m.
Thanks Ryan, this should work for me.
-Sanjit
On Mon, Dec 21, 2009 at 4:21 PM, Ryan Gallagher
Sanjit Jhala
writes: 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?
Have you tried sending a std::vectorstd::string as the option value?
("server", po::value< vector<string> >()
See the "Option Details" section in the tutorial:
HTH,
-Ryan
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users