Boost logo

Boost Users :

From: Sebastian Weber (sebastian.weber_at_[hidden])
Date: 2007-03-07 06:40:34


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?


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