Skip to content

Commit 1c0e0c7

Browse files
kovanclaude
andcommitted
gh-69223: Document that add_argument returns an Action object
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 72eca2a commit 1c0e0c7

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)