[Python-checkins] gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814)

erlend-aasland webhook-mailer at python.org
Wed May 18 17:08:55 EDT 2022


https://github.com/python/cpython/commit/f2d994da104eed38f9e110e7d8f37fa6d845b207
commit: f2d994da104eed38f9e110e7d8f37fa6d845b207
branch: main
author: 180909 <734461790 at qq.com>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2022-05-18T23:08:23+02:00
summary:

gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814)

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 83dd3cdf03136..0e62e99d706d4 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1701,7 +1701,7 @@ Sub-commands
 
 .. method:: ArgumentParser.add_subparsers([title], [description], [prog], \
                                           [parser_class], [action], \
-                                          [option_string], [dest], [required], \
+                                          [option_strings], [dest], [required], \
                                           [help], [metavar])
 
    Many programs split up their functionality into a number of sub-commands,



More information about the Python-checkins mailing list