Boost logo

Boost Users :

Subject: Re: [Boost-users] positional arguments in boost::program_options
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2012-06-14 04:53:23


On 13 June 2012 23:23, Evan Driscoll <driscoll_at_[hidden]> wrote:
> On 06/13/2012 05:12 PM, Evan Driscoll wrote:
>>
>> I can (mostly) get around this by naming all the fake positional
>> arguments something like --ZZZZarg and assuming no one will ever want to
>> pass that to another program, but it's a bit unsatisfactory
>> conceptually. Is there a better way?
>
>
> Actually, playing around more, it's not even acceptable: something like
>
>  my_wrapper  target_program --help
>
> will trigger my wrapper's --help option. And I definitely *do* want that and
> perhaps some other options that could potentially conflict.
>
>
> Is there a way to get the behavior I want with Boost or am I out of luck?

I haven't got back to this issue since I noticed, but it may be related to this:

https://svn.boost.org/trac/boost/ticket/5201

http://stackoverflow.com/questions/4107087/accepting-negative-doubles-with-boostprogram-options

If it is, then it needs AFAIU some not-so-non-intrusive refactoring
within the boost::program_options.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

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