Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-09 10:11:26


Alexis H. Rivera-Rios wrote:

>>I think it's the library. But in any case, I plan to
>>remove the
>>'implicit'
>>flag in 1.33. Why do you want it? What about:
>>
>> desc.add_options()
>> ("debug", bool_option(), "enable debugging")
>>
>>?
>>- Volodya
>
> Why do I wanted? No special reason, I was learning to
> use the library and got stuck on that one. The code
> didn't do what the documentation said it should do.

Ok.

> I wasn't aware of the bool_option.

Actually, it's called 'bool_switch', sorry for the typo.

> Will that let me
> do something like myprogram --debug

Yes, exactly this.

> or will I have to
> do something like myprogram --debug=1 ?

And this won't be allowed.

- Volodya


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