gh-103582: Remove last references to argparse.REMAINDER from docs (GH-103586)

(cherry picked from commit f4d087964e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2023-04-18 22:14:53 -07:00 committed by GitHub
parent 1dad3d1071
commit 5a81a24c8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ default_ Default value used when an argument is not provided
dest_ Specify the attribute name used in the result namespace dest_ Specify the attribute name used in the result namespace
help_ Help message for an argument help_ Help message for an argument
metavar_ Alternate display name for the argument as shown in help metavar_ Alternate display name for the argument as shown in help
nargs_ Number of times the argument can be used :class:`int`, ``'?'``, ``'*'``, ``'+'``, or ``argparse.REMAINDER`` nargs_ Number of times the argument can be used :class:`int`, ``'?'``, ``'*'``, or ``'+'``
required_ Indicate whether an argument is required or optional ``True`` or ``False`` required_ Indicate whether an argument is required or optional ``True`` or ``False``
type_ Automatically convert an argument to the given type :class:`int`, :class:`float`, ``argparse.FileType('w')``, or callable function type_ Automatically convert an argument to the given type :class:`int`, :class:`float`, ``argparse.FileType('w')``, or callable function
====================== =========================================================== ========================================================================================================================== ====================== =========================================================== ==========================================================================================================================
@ -2186,7 +2186,7 @@ support this parsing style.
These parsers do not support all the argparse features, and will raise These parsers do not support all the argparse features, and will raise
exceptions if unsupported features are used. In particular, subparsers, exceptions if unsupported features are used. In particular, subparsers,
``argparse.REMAINDER``, and mutually exclusive groups that include both and mutually exclusive groups that include both
optionals and positionals are not supported. optionals and positionals are not supported.
The following example shows the difference between The following example shows the difference between