Skip to content

Commit 9a9ce40

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 5db0177 commit 9a9ce40

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
@@ -613,6 +613,8 @@ The add_argument() method
613613

614614
* deprecated_ - Whether or not use of the argument is deprecated.
615615

616+
The method returns an :class:`Action` object representing the argument.
617+
616618
The following sections describe how each of these are used.
617619

618620

0 commit comments

Comments
 (0)