From: Andrew Barnes Date: Fri, 6 Mar 2026 16:10:12 +0000 (-0500) Subject: gh-69223: Document that add_argument() returns an Action object (#145538) X-Git-Tag: v3.15.0a7~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28e5f58ebf8d9badcc893cd189cb1575d4e3614;p=thirdparty%2FPython%2Fcpython.git gh-69223: Document that add_argument() returns an Action object (#145538) --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 8f31e815e0eb..5a463ee9821d 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -698,6 +698,8 @@ The add_argument() method * deprecated_ - Whether or not use of the argument is deprecated. + The method returns an :class:`Action` object representing the argument. + The following sections describe how each of these are used.