Steven Bethard <steven.beth...@gmail.com> added the comment:

I think the real fix needs to search recursively though all subparsers. Here's 
a first draft of a patch that does this. I believe your sample code works after 
this patch.

I don't have the time to turn your bug report into proper test (and add a test 
for the recursive bit), but hopefully this is enough to let someone else finish 
up fixing this bug.

And yes, your "dirty hack" was still helpful in putting this together. ;-)

----------
keywords: +patch
Added file: http://bugs.python.org/file26466/subparser_optionals.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14365>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to