[New-bugs-announce] [issue36358] bool type does not support True or False as command line argv

Abhinav Gupta report at bugs.python.org
Tue Mar 19 02:56:39 EDT 2019


New submission from Abhinav Gupta <abhinavgupta94 at gmail.com>:

If I have a type=bool argument in argparser and I provide the value for it using command-line, it always evaluates to True. Is this expected?

Is there no alternative to using '' for False and any other string for True?

----------
components: Library (Lib)
messages: 338321
nosy: Abhinav Gupta
priority: normal
severity: normal
status: open
title: bool type does not support True or False as command line argv
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36358>
_______________________________________


More information about the New-bugs-announce mailing list