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

EV report at bugs.python.org
Mon Jul 30 10:25:13 EDT 2018


EV <fennec15 at gmail.com> added the comment:

I have an issue with the assumption that if all parameters are forced to be prepended by -- instead of only one dash, that you would then convert the -- to a single dash and have issues with single-dashed strings, when all other parameters are dual-dashed. This is especially crazy if the user specifies that prefix_chars="--" when creating the parser! You wouldn't mix up ** with * just because it's a two char string, so why do this for -- in this day and age when parameters can take on very different and complicated structures?!

----------
nosy: +fennec15

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


More information about the Python-bugs-list mailing list