
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>. Thanx Bo

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

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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Bo Jensen wrote:
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.
I would actually use: --read-sol arg Solution file. Supported extensions .sol .sol.gz. - Volodya
participants (2)
-
Bo Jensen
-
Vladimir Prus