[issue24956] Default value for an argument that is not in the choices list gets accepted
Sworddragon
report at bugs.python.org
Sat Aug 29 12:26:34 CEST 2015
New submission from Sworddragon:
Normally if a value to an argument is passed that is not in the choices list an error like "test.py: error: argument --test: invalid choice: 'c' (choose from 'a', 'b')" is shown. But if the default is set to an invalid choice no error is shown.
----------
components: Library (Lib)
messages: 249318
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Default value for an argument that is not in the choices list gets accepted
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24956>
_______________________________________
More information about the Python-bugs-list
mailing list