This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dkg
Recipients Zach Beniash, dkg, matrixise, paul.j3
Date 2019-11-10.17:19:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
this is a common enough question, and enough people want this behavior, that argparse should supply it.

I'm imagining that:  


would be fine for triggering this behavior, instead of the shadowing that could happen with:


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:46dkgsetrecipients: + dkg, paul.j3, matrixise, Zach Beniash
2019-11-10 17:19:46dkgsetmessageid: <>
2019-11-10 17:19:46dkglinkissue37564 messages
2019-11-10 17:19:45dkgcreate