[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

Nelson Elhage report at bugs.python.org
Fri Jul 23 01:40:32 CEST 2010


Nelson Elhage <nelhage at nelhage.com> added the comment:

For what it's worth, I have trouble seeing this as anything but a bug. I understand the motivation of trying to catch user errors, but in doing so, you're breaking with the behavior of every other option parsing library that I'm aware of, in favor of an arbitrary heuristic that sometimes guesses wrong. That's not the kind of behavior I expect from my Python libraries; I want them to do what I ask them to, not try to guess what I probably meant.

----------
nosy: +nelhage

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9334>
_______________________________________


More information about the Python-bugs-list mailing list