Message348761
As discussed in https://bugs.python.org/issue23487, `action` works if the class is compatible with argparse._SubParsersAction.
these commands all do the same thing:
parser.add_subparsers() # default
parser.add_subparsers(action='parsers')
parser.add_subparsers(action=argparse._SubParsersAction)
Your example using
parser.add_subparsers(action='store')
raises the error because the argparse._StoreAction class cannot handle the `parser_class` parameter that add_subparsers has added to the kwargs. |
|
Date |
User |
Action |
Args |
2019-07-30 17:28:04 | paul.j3 | set | recipients:
+ paul.j3, docs@python, xtreak, retnikt |
2019-07-30 17:28:04 | paul.j3 | set | messageid: <1564507684.61.0.142040247826.issue37717@roundup.psfhosted.org> |
2019-07-30 17:28:04 | paul.j3 | link | issue37717 messages |
2019-07-30 17:28:04 | paul.j3 | create | |
|