New submission from Chris Bruner: >From the documentation, I think that argparse should pass the entire >nargs-long string to the "type=" callable. Instead, it only passes the first >argument (of nargs), making it impossible within argparse's framework to check >for a tuple of mixed types, e.g., 2 ints and a float (my case), or a string >and three numbers, etc.
See attached reproducer. ---------- files: argparse_typedef_bug.py messages: 223748 nosy: Chris.Bruner priority: normal severity: normal status: open title: argparse: type=<callable> doesn't honor nargs > 1 type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file36048/argparse_typedef_bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22049> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com