[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread paul j3
paul j3 added the comment: An existing parser can be included in a new subparser via the 'parents' mechanism. With that the _actions and groups of the parent are copied (by reference) to the new subparser. There are some rough edges to the parents mechanism, but people have used it to add

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi
Change by Bohdan Borkivskyi : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi
New submission from Bohdan Borkivskyi : Currently, there is only a possibility to create empty parser as subparser - argparse.py, line 1122 The purpose of issue is to add support for existing parser to be added as subparser -- components: Library (Lib) messages: 382867 nosy: