
22 Dec
2009
22 Dec
'09
12:21 a.m.
Sanjit Jhala
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: http://tinyurl.com/yd95h2r HTH, -Ryan