[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:25:48 EDT 2022
https://github.com/python/cpython/commit/849963598fa0454ef1bc9c93f5654d63f59e830d
commit: 849963598fa0454ef1bc9c93f5654d63f59e830d
branch: 3.11
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:25:25-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 1f40e4a84505d..76efed95bd4cc 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -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,
More information about the Python-checkins
mailing list