Message215992
If your goal is to get a boolean on/off switch, that's what action='store_true' is for. You don't need to specify nargs or type at all; using bool as the type means it wants an argument, and will pass the string form of the argument to the bool constructor; since only the empty string is False, it would be quite difficult to pass it intuitively. |
|
Date |
User |
Action |
Args |
2014-04-13 01:30:43 | josh.r | set | recipients:
+ josh.r, krichter |
2014-04-13 01:30:43 | josh.r | set | messageid: <1397352643.46.0.150550721388.issue21208@psf.upfronthosting.co.za> |
2014-04-13 01:30:43 | josh.r | link | issue21208 messages |
2014-04-13 01:30:43 | josh.r | create | |
|