[3.13] gh-72406: Document argument ordering in argparse help output (GH-148534) (#148567)

gh-72406: Document argument ordering in argparse help output (#148534)

(cherry picked from commit 4286227308)

Co-authored-by: Santi Hernandez <santi@santihdzs.com>
This commit is contained in:
Savannah Ostrowski
2026-04-14 10:53:11 -07:00
committed by GitHub
parent 5a4143a392
commit ee34f95dbc
+3
View File
@@ -1888,6 +1888,9 @@ Argument groups
Note that any arguments not in your user-defined groups will end up back
in the usual "positional arguments" and "optional arguments" sections.
Within each argument group, arguments are displayed in help output in the
order in which they are added.
.. versionchanged:: 3.11
Calling :meth:`add_argument_group` on an argument group is deprecated.
This feature was never supported and does not always work correctly.