Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-11-12 17:26:47


Zachary wrote:

> I've been using program_options quite happily and successfully for a short
> while now and would like to take this opportunity to express my gratitude.
>
> Is there a way to extract postional args from config file, though? The
> headers seem to indicate that it's possible include_positional flag, but I
> haven't been able to find something workable in the documentation or
> mailing lists.

It's not possible, as I never saw a config file with positional options.

The 'include_positional' you mention is defined like this:

    /** Controls if the 'collect_unregistered' function should
        include positional options, or not. */
    enum collect_unrecognized_mode
    { include_positional, exclude_positional };

so it only applies to collect_unregistered function. As config file
parser will never return positional options, 'include_positional' is
of no use.

Does this clarifies things?

- Volodya


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