zenlotus / argparse

Automatically exported from code.google.com/p/argparse
Other
0 stars 0 forks source link

sub command set_defaults behaviour #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create 2+ deep hierarchy of subcommands
2. use set_defaults(func=funcname) on parser for each level

What is the expected output? What do you see instead?
Expect that sub command defaults override the parent level, instead the parent 
is used.  

What version of the product are you using? On what operating system?
using version 1.1 with python2.6.5 on mac leopard 10.6.3

Original issue reported on code.google.com by aacha...@gmail.com on 26 Apr 2010 at 11:48

GoogleCodeExporter commented 9 years ago
Moved to http://bugs.python.org/issue9351

Original comment by steven.b...@gmail.com on 23 Jul 2010 at 2:08