Skip to content

Commit 3cf2eac

Browse files
committed
Doc: document add_argument() return value (Action object)
1 parent 11840ca commit 3cf2eac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/argparse.rst

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

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

701+
The method returns the :class:`Action` object that was created and added to
702+
the parser. This can be stored and used for further customization or
703+
inspection.
704+
701705
The following sections describe how each of these are used.
702706

703707

0 commit comments

Comments
 (0)