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

miss-islington webhook-mailer at python.org
Wed May 18 17:30:04 EDT 2022


https://github.com/python/cpython/commit/17524b084b565b321b4671f50a62864ea907b24f
commit: 17524b084b565b321b4671f50a62864ea907b24f
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-18T14:30:00-07:00
summary:

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

(cherry picked from commit f2d994da104eed38f9e110e7d8f37fa6d845b207)

Co-authored-by: 180909 <734461790 at qq.com>

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index e8e54d6c58df3..d96f17b80a5f0 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1615,7 +1615,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