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

Eric V. Smith report at bugs.python.org
Thu Mar 14 18:59:52 CET 2013


Eric V. Smith added the comment:

Evgeny: I completely agree. It's unfortunate that argparse doesn't work that way.

However, I think it's too late to change this behavior without adding a new parser. I don't think existing argparse can be changed to not operate the way it does, due to backward compatibility concerns. The discussion in this issue describes those compatibility concerns.

----------

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


More information about the Python-bugs-list mailing list