Boost logo

Boost Users :

Subject: Re: [Boost-users] [Program_options] Custom <arg>
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2010-04-21 05:28:58


Ok, if I understand you correct this is a long the lines of your suggestion :

  --read-sol arg arg = [somefile].
                            Reads a solution file. Supported
extensions .sol .sol.gz.

This is good enough for me.
Thanx for your help.

On Wed, Apr 21, 2010 at 9:03 AM, Vladimir Prus <ghost_at_[hidden]> wrote:
> Bo Jensen wrote:
>>
>> Hi,
>> Can anyone point me to a working example of replacing the arguments in
>> program_options i.e :
>>
>> --someoption <arg>
>>
>> so I would like to replace <arg>.
>
> It's not possible without rewriting operator<<, more or less. I suggest you
> use
> the description for the option to say what arg can be.
>
> - Volodya
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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