[docs] [issue22049] argparse: type=<callable> doesn't honor nargs > 1
R. David Murray
report at bugs.python.org
Wed Jul 23 20:20:10 CEST 2014
R. David Murray added the comment:
Nope. The documentation says:
N (an integer). N arguments from the command line will be gathered together into a list
The type function is applied to each argument independently. It would be easy enough to make this explicit in one of the nargs multi-argument examples by using type as well.
----------
assignee: -> docs at python
components: +Documentation
nosy: +docs at python, r.david.murray
stage: -> needs patch
versions: +Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22049>
_______________________________________
More information about the docs
mailing list