[issue24754] argparse add_argument with action="store_true", type=bool should not crash
Konstantin Molchanov
report at bugs.python.org
Sat Aug 22 20:56:21 CEST 2015
Konstantin Molchanov added the comment:
Although I agree that specifying type with store_true or store_false is unnecessary, this shouldn't really be an error like this. Why not just ignore type if it can't be utilized?
The error message implies the usage of add_argument is erroneous, however it is fully compatible with the spec give in the docs.
Alternatively, the docs should be updated.
----------
nosy: +moigagoo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24754>
_______________________________________
More information about the Python-bugs-list
mailing list