]> 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:25:25 +0000 (14:25 -0700)
committerGitHub <noreply@github.com>
Wed, 18 May 2022 21:25:25 +0000 (14:25 -0700)
(cherry picked from commit f2d994da104eed38f9e110e7d8f37fa6d845b207)

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

index 1f40e4a84505d2c76f024515c48b80ee5f3e0c0d..76efed95bd4ccb811d5d51901415632172e59551 100644 (file)
@@ -1698,7 +1698,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,