[issue9351] argparse set_defaults on subcommands should override top level set_defaults
paul j3
report at bugs.python.org
Fri May 10 23:39:33 EDT 2019
paul j3 <ajipanca at gmail.com> added the comment:
A variation on the problem I reported in
https://bugs.python.org/issue9351#msg229968
is that a custom Namespace class as documented in
https://docs.python.org/3/library/argparse.html#the-namespace-object
will not be used by the subparsers. Only the main parser uses that custom Namespace object; the subparsers continue to use the default 'argparse.Namespace()'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue9351>
_______________________________________
More information about the Python-bugs-list
mailing list