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


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

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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at