Bugs item #1527705, was opened at 2006-07-24 17:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1527705&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Feature Request Status: Open Resolution: None Priority: 5 Submitted By: Ritesh Raj Sarraf (riteshsarraf) Assigned to: Nobody/Anonymous (nobody) Summary: optparse should support arbitrary number of arguments Initial Comment: Currently, the number of arguments an option can/should have, needs be defined. This is done using "nagrs". parser.add_option("", "--my-option", nargs=3) The problem is that at times it isn't predictable how many arguments you'll be receiving. I request the implementation of this feature in optparse, where the following could be possible. parser.add_option("", "--my-option", nargs=*) Thanks, Ritesh ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1527705&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com