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. I wasn't aware of the bool_option. Will that let me do something like myprogram --debug or will I have to do something like myprogram --debug=1 ? Thanks, Alexis Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/
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
participants (2)
-
Alexis H. Rivera-Rios
-
Vladimir Prus