Skip to content

Commit 1eafd69

Browse files
Bortlesboatljfp
authored andcommitted
pythongh-69223: Document that add_argument() returns an Action object (python#145538)
1 parent e8868f9 commit 1eafd69

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/argparse.rst

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

699699
* deprecated_ - Whether or not use of the argument is deprecated.
700700

701+
The method returns an :class:`Action` object representing the argument.
702+
701703
The following sections describe how each of these are used.
702704

703705

0 commit comments

Comments
 (0)