Olaf van der Spek wrote:
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"].asstd::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.
Quoting the docs: A response file is just a configuration file which uses the same syntax as the command line So, response file might contain: --foo=bar while regular config file has different syntax. Also, it is typical to use response files with the @filename syntax, which is also not readily available. - Volodya