
5 Mar
2010
5 Mar
'10
5:06 p.m.
However, looking at the parse_config_file function reference I see there is some flag that hints that unknown options should be accepted. There are no docs on this feature, and the function interface is not described. It's also not clear how do I work with the result of this function.
something along the lines of std::ifstream ifs(config_file.c_str()); po::store(po::parse_config_file(ifs, desc, true), vm); ifs.close(); po::notify(vm); will do the parsing. The parsed variables can then be accessed from the variables map. -- Christoph