[docs] [issue22049] argparse: type=<callable> doesn't honor nargs > 1

paul j3 report at bugs.python.org
Fri Jul 25 05:42:03 CEST 2014

paul j3 added the comment:

Note that 

    '-t 1 2 3'.split()


    ['-t', '1', '2', '3']

Your 'type' function sees those 3 strings individually.  Try printing 'string' the first thing in your function to see what we mean.

nosy: +paul.j3

Python tracker <report at bugs.python.org>

More information about the docs mailing list