|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-02 02:45:59
Neal D. Becker wrote:
> Vladimir Prus wrote:
>
>> Hi Neal,
>>
>>> Any suggestion on how to implement the common gnu idiom:
>>>
>>> --switch and --no-switch?
>>>
>>> bool_switch seems perfect for implementing --switch, but what about
>>> --no-switch (which should set switch_value to false)?
>>
>> What do you think about the approach in examples/custom_syntax.cpp?
>>
>> - Volodya
>>
>
> I think it's not documented.
Actually,
http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/program_options/howto.html#id556929
is supposed to discuss that example.
> I don't see any mention of extra_parser in:
> file:/usr/local/src/boost_1_32_0/doc/html/program_options/reference.html
You're right, unfortunately :-(
I've added some comments, on trunk and release branch, and would suggest
that you just copy the usage of 'extra_parser' from the example.
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk