Jakub Warmuz added the comment:
Attached quick&dirty fix I'm currently using in my project. Maybe this will
help to create a valid patch.
Instead of changing _parse_optional, I've overridden _get_option_tuples to scan
subparsers for matching optional arguments if option is am
Jakub Warmuz added the comment:
I don't understand how both bugs are related. Surely, patch provided for #12713
does not fix the issue I described.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Jakub Warmuz :
Assuming following:
1. optional argument, say "--foo", in a subparser;
2. at least two different optional arguments in the main parser prefixed with
"--foo", say "--foo1" and "--foo2";
parsing fails with "erro