Boost logo

Boost Users :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2007-07-20 05:51:02


Hi,

[1] says:
> The library does not provide direct support for response files, so you'll need to write some extra code.

But this code does the trick without much extra code:
                std::ifstream is(vm["conf_file"].as<std::string>().c_str());
                po::store(po::parse_config_file(is, desc), vm);

Or is a response file something else? In that case, maybe that should
be mentioned, as I think for lots of users this is enough.

[1] http://boost.org/doc/html/program_options/howto.html#id1592676


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