]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-69223: Document that add_argument() returns an Action object (#145538)
authorAndrew Barnes <bortstheboat@gmail.com>
Fri, 6 Mar 2026 16:10:12 +0000 (11:10 -0500)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 16:10:12 +0000 (16:10 +0000)
Doc/library/argparse.rst

index 8f31e815e0eb4b1fb9d703d1b147e487ef55045a..5a463ee9821d6119af79ad86b64b60dcec3a083a 100644 (file)
@@ -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.