[issue14392] type=bool doesn't raise error in argparse.Action

Toshihiro Kamishima report at bugs.python.org
Fri Mar 23 08:03:28 CET 2012


New submission from Toshihiro Kamishima <mail at kamishima.net>:

According to the documentation of "argparse.Action", a keyword 'bool' is not allowed for type argument, but it doesn't raise no errors.

One possible way to fix this issue is to check in the "argparse._ActionsContainer.add_argument" method.

----------
components: Library (Lib)
files: argparse.py.patch
keywords: patch
messages: 156636
nosy: shima__shima
priority: normal
severity: normal
status: open
title: type=bool doesn't raise error in argparse.Action
versions: Python 2.7
Added file: http://bugs.python.org/file25001/argparse.py.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14392>
_______________________________________


More information about the Python-bugs-list mailing list