From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 19 Apr 2023 05:14:53 +0000 (-0700) Subject: gh-103582: Remove last references to `argparse.REMAINDER` from docs (GH-103586) X-Git-Tag: v3.11.4~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a81a24c8b0fdb835831ecb14b0201d0a06bb84e;p=thirdparty%2FPython%2Fcpython.git gh-103582: Remove last references to `argparse.REMAINDER` from docs (GH-103586) (cherry picked from commit f4d087964e3deaabc902a155efdf0e7f43f78d52) Co-authored-by: Nikita Sobolev --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 8dfe86a4add3..df283dbc9f5b 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -67,7 +67,7 @@ default_ Default value used when an argument is not provided dest_ Specify the attribute name used in the result namespace help_ Help message for an argument 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`` 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 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. The following example shows the difference between