Skip to content

Commit 1b409d7

Browse files
Bortlesboatmiss-islington
authored andcommitted
gh-69223: Document that add_argument() returns an Action object (GH-145538)
(cherry picked from commit b28e5f5) Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
1 parent 89b69db commit 1b409d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,8 @@ The add_argument() method
691691

692692
* deprecated_ - Whether or not use of the argument is deprecated.
693693

694+
The method returns an :class:`Action` object representing the argument.
695+
694696
The following sections describe how each of these are used.
695697

696698

0 commit comments

Comments
 (0)