guilherme-pg <guilherme.p.g...@gmail.com> added the comment: I uploaded an incomplete patch that might address the issue so it can be discussed.
This patch introduces 'greedy_star', a new constructor parameter to ArgumentParser that makes "*" positional arguments behave as expected in the test case. The patch doesn't yet update the documentation and doesn't include test cases, but I'll be glad to provide those changes in a next version. It is admittedly hackish, but I haven't found a better solution so far. Looking forward for your comments. ---------- keywords: +patch nosy: +guilherme-pg Added file: http://bugs.python.org/file24745/14191.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14191> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com