7 Mar
2007
7 Mar
'07
11:40 a.m.
Hi! You need the latest boost cvs progam_options version to have unknown options working correctly. Greetings, Sebastian On Wed, 2007-03-07 at 03:23 -0800, martux wrote:
Hi,
I am having some trouble getting program_options to ignore unknown options. As suggested in the documentation I set allow_unregistered() but
po::store(po::command_line_parser(argc, argv).options(pd.get()).allow_unregistered().run(), vm); po::notify(vm);
still throws boost::program_options::unknown_option. Could anyone please make clear how to do it correctly?