]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814)
author180909 <734461790@qq.com>
Wed, 18 May 2022 21:08:23 +0000 (05:08 +0800)
committerGitHub <noreply@github.com>
Wed, 18 May 2022 21:08:23 +0000 (23:08 +0200)
Doc/library/argparse.rst

index 83dd3cdf03136d245013417574e7422f12f5bb88..0e62e99d706d4ca3926c343b10f8baf9fd9f042f 100644 (file)
@@ -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,