]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (GH-92814)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 May 2022 21:30:00 +0000 (14:30 -0700)
committerGitHub <noreply@github.com>
Wed, 18 May 2022 21:30:00 +0000 (14:30 -0700)
(cherry picked from commit f2d994da104eed38f9e110e7d8f37fa6d845b207)

Co-authored-by: 180909 <734461790@qq.com>
Doc/library/argparse.rst

index e8e54d6c58df36e980a62b8a9cc76e5ac11f6890..d96f17b80a5f0f129b8ded43373fdf7f29f60362 100644 (file)
@@ -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,