25 Jun
2009
25 Jun
'09
6:57 p.m.
Hasanul Ferdaus wrote:
But the value of the option node.initiator (i.e. "true") is not shown, also there is no exception. If I pass "false" in the 3rd parameter of parse_config_file() rather than "true", it throws exception, as it should do. But my question is, why "node.initiator" option is not in the variablesMap, as parse_config_file() should have parsed both registered and unregistered options.
Why? Documentation say that you should use collect_unrecognized: http://www.boost.org/doc/libs/1_39_0/doc/html/program_options/howto.html#id2... It does not seem reasonable to not declare an option and then expect that the interface specifically design to work with previously registered options will be useful. - Volodya