Opened 16 years ago

Last modified 15 years ago

#687 closed Feature Requests (fixed)

[program_options] Allow unrecognized options in configfile — at Initial Version

Reported by: ensc Owned by: nobody
Milestone: Component: program_options
Version: None Severity: Showstopper
Keywords: Cc:

Description

It would be nice when the config-file parser would have
a similar mechanism to allow and collect unregistered
options like the command-line parser.

E.g. with the command-line parser I can use the
allow_unregistered() method, but config-file parser
throws always a boost::program_options::unknown_option
exception.

I want this feature e.g. to express things like

| module = A
| module = B
| [A]
| foo = X
| [B]
| bar = Y

where the options in the [A] and [B] sections are
unknown at the first pass.

Change History (0)

Note: See TracTickets for help on using tickets.