From: 180909 <734461790@qq.com> Date: Wed, 18 May 2022 21:08:23 +0000 (+0800) Subject: gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814) X-Git-Tag: v3.12.0a1~1509 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2d994da104eed38f9e110e7d8f37fa6d845b207;p=thirdparty%2FPython%2Fcpython.git gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (#92814) --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 83dd3cdf0313..0e62e99d706d 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,