[program_options] ignoring unknown options

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? -- View this message in context: http://www.nabble.com/-program_options--ignoring-unknown-options-tf3361505.h... Sent from the Boost - Users mailing list archive at Nabble.com.

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?
participants (2)
-
martux
-
Sebastian Weber