Author paul.j3
Recipients ericvw, nickpapior, paul.j3
Date 2016-09-04.16:36:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've posted a file that runs your code as you expect.

It uses a custom Action class (like your test case).  It subclasses ._SubParsersAction, and replaces the 9351 namespace use with the original one.  I use the registry to change the class that parser.add_subparsers() uses.

The stock file does not need to be changed.


In your custom Action I access `` with `getattr(namespace, 'foo', None)` which is how argparse accesses the namespace, and does not throw attribute errors.
Date User Action Args
2016-09-04 16:36:55paul.j3setrecipients: + paul.j3, ericvw, nickpapior
2016-09-04 16:36:55paul.j3setmessageid: <>
2016-09-04 16:36:55paul.j3linkissue27859 messages
2016-09-04 16:36:55paul.j3create