Boost logo

Boost Users :

Subject: [Boost-users] [program_options] maps as arguments
From: Christoph Duelli (duelli_at_[hidden])
Date: 2008-10-15 04:04:21


Does program_options somehow support something like
  --base x=hello --base y=world
where the parsed "--base"s will be put in a std::map<std::string,
std::string> (or std::map<X,Y> in the general case?)

(At the moment I parse --base into a vector<string> and process the read
strings after program_options has done its job.)

Thank you,
Christoph


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