This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nazime Koussaila Lakehal
Recipients Nazime Koussaila Lakehal, docs@python
Date 2020-03-11.16:25:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583943958.07.0.538829278301.issue39935@roundup.psfhosted.org>
In-reply-to
Content
The parameter help in the method add_parser of _SubParsersAction (that we obtain with ArgumentParser.add_subparsers()) Is not documented.

In the documentation we can find:
The add_subparsers() method is normally called with no arguments and returns a special action object. This object has a single method, add_parser(), which takes a command name and any ArgumentParser constructor arguments, and returns an ArgumentParser object that can be modified as usual.

I found the parameter by accident and then I checked in the source code, it's unfortunate because the help parameter give really nice output when having sub commands.

the parameter 'aliases' is also not documented.
History
Date User Action Args
2020-03-11 16:25:58Nazime Koussaila Lakehalsetrecipients: + Nazime Koussaila Lakehal, docs@python
2020-03-11 16:25:58Nazime Koussaila Lakehalsetmessageid: <1583943958.07.0.538829278301.issue39935@roundup.psfhosted.org>
2020-03-11 16:25:58Nazime Koussaila Lakehallinkissue39935 messages
2020-03-11 16:25:57Nazime Koussaila Lakehalcreate