Message356332
this is a common enough question, and enough people want this behavior, that argparse should supply it.
I'm imagining that:
type='bool'
would be fine for triggering this behavior, instead of the shadowing that could happen with:
type=bool
so if type='bool' is supplied, the following things would happen:
* argparse could use strtobool to interpret the incoming string
* the default metavar would look something like "{true,false}"
* followon packages like argcomplete could enumerate the range of different values that strtobool accepts
This is still english-specific -- but it's because strtobool is english-specific, and fixes in strtobool would automatically fix type='bool' here. |
|
Date |
User |
Action |
Args |
2019-11-10 17:19:46 | dkg | set | recipients:
+ dkg, paul.j3, matrixise, Zach Beniash |
2019-11-10 17:19:46 | dkg | set | messageid: <1573406386.39.0.29104857297.issue37564@roundup.psfhosted.org> |
2019-11-10 17:19:46 | dkg | link | issue37564 messages |
2019-11-10 17:19:45 | dkg | create | |
|