program_options, parse up to first non-option

Can program_options be used to parse command line elements up to the first non-option that is not an option argument?

Hi Tow,
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?
Best,
Dee
On Mon, Aug 1, 2011 at 18:20, Tow Mater
Can program_options be used to parse command line elements up to the first non-option that is not an option argument? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Mon, Aug 1, 2011 at 4:27 PM, Diederick C. Niehorster
On Mon, Aug 1, 2011 at 18:20, Tow Mater
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.
participants (2)
-
Diederick C. Niehorster
-
Tow Mater