Glenn Linderman added the comment:

I should clarify, before someone jumps in: some particular applications do 
implement restrictions on order of optional and positional arguments; I'm aware 
of that. getopt easily supported application defined order restrictions, 
because it processed arguments sequentially, and the processing loop was user 
code. optparse, as has been pointed out, parses the optionals, and leaves a 
single list of positionals, combined from between all the optionals, for the 
user code to process in any manner, but would actually make it harder for user 
code to implement order restrictions. argparse goes the other way, taking over 
all the user parsing (which is a good thing), but not providing sufficient 
features to implement flexible mixing of optional and positional arguments.

----------

_______________________________________
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

Reply via email to