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 <1573406386.39.0.29104857297.issue37564@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-11-10 17:19:46dkgsetrecipients: + dkg, paul.j3, matrixise, Zach Beniash
2019-11-10 17:19:46dkgsetmessageid: <1573406386.39.0.29104857297.issue37564@roundup.psfhosted.org>
2019-11-10 17:19:46dkglinkissue37564 messages
2019-11-10 17:19:45dkgcreate