Boost logo

Boost Users :

Subject: Re: [Boost-users] program_options, parse up to first non-option
From: Tow Mater (m7887648_at_[hidden])
Date: 2011-08-02 04:33:37


On Mon, Aug 1, 2011 at 4:27 PM, Diederick C. Niehorster
<dcnieho_at_[hidden]> wrote:
> On Mon, Aug 1, 2011 at 18:20, Tow Mater <m7887648_at_[hidden]> wrote:
>> Can program_options be used to parse command line elements up to the
>> first non-option that is not an option argument?
>
> I'm not sure if there is direct support for gobbling only those that
> it program_options knows about, but you can get the ones it doesn't
> know about with collect_unregistered. Maybe thats all you need?

Unfortunately there could be elements after the first non-option that
look like valid options.

Thanks anyway.


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