Skip to content

Commit d26fef1

Browse files
miss-islingtonsantihdzssavannahostrowski
authored
[3.14] gh-72406: Document argument ordering in argparse help output (GH-148534) (#148562)
gh-72406: Document argument ordering in argparse help output (GH-148534) (cherry picked from commit 4286227) Co-authored-by: Santi Hernandez <santi@santihdzs.com> Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent b988157 commit d26fef1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/argparse.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,9 @@ Argument groups
19961996
Note that any arguments not in your user-defined groups will end up back
19971997
in the usual "positional arguments" and "optional arguments" sections.
19981998

1999+
Within each argument group, arguments are displayed in help output in the
2000+
order in which they are added.
2001+
19992002
.. deprecated-removed:: 3.11 3.14
20002003
Calling :meth:`add_argument_group` on an argument group now raises an
20012004
exception. This nesting was never supported, often failed to work

0 commit comments

Comments
 (0)