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 josh.r
Recipients josh.r, krichter
Date 2014-04-13.01:30:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-13 01:30:43josh.rsetrecipients: + josh.r, krichter
2014-04-13 01:30:43josh.rsetmessageid: <[email protected]>
2014-04-13 01:30:43josh.rlinkissue21208 messages
2014-04-13 01:30:43josh.rcreate