Boost logo

Boost Users :

From: martux (martin_eigel_at_[hidden])
Date: 2007-03-07 06:23:17


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.html#a9351066
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net