Boost logo

Boost Users :

Subject: [Boost-users] program_options: Allowing unknown options in config files
From: Kevin Channon (kevin.channon_at_[hidden])
Date: 2008-11-26 13:11:47


Hi,

I'm trying to use the Program Options library to parse command line arguments
and config files. I can do this with moderate success. I am currently
stuck on a
solution to the problem of unrecognized options that are present in a
config file.
It seems that parse_config_file() does not have an obvious way to not abort
reading a config file once it finds something that isn't declared in the options
description.

Any help on how to get around this (or just a kind of "hey you missed
this bit of
the manual" kind of pointer) would be very welcome.

Thanks,
         Kevin


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