Skip to content

Commit 5add876

Browse files
committed
gh-72406: Document argument ordering in argparse help output
1 parent 4adffd9 commit 5add876

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
@@ -699,6 +699,8 @@ The add_argument() method
699699
* deprecated_ - Whether or not use of the argument is deprecated.
700700

701701
The method returns an :class:`Action` object representing the argument.
702+
Within each argument group, arguments are displayed in help output in the
703+
order in which they are added.
702704

703705
The following sections describe how each of these are used.
704706

0 commit comments

Comments
 (0)