Skip to content

Commit 4f72246

Browse files
committed
Move note to Argument groups section, remove NEWS entry
1 parent c66f20b commit 4f72246

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/argparse.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,6 @@ 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.
704702

705703
The following sections describe how each of these are used.
706704

@@ -2034,6 +2032,9 @@ Argument groups
20342032
Note that any arguments not in your user-defined groups will end up back
20352033
in the usual "positional arguments" and "optional arguments" sections.
20362034

2035+
Within each argument group, arguments are displayed in help output in the
2036+
order in which they are added.
2037+
20372038
.. deprecated-removed:: 3.11 3.14
20382039
Calling :meth:`add_argument_group` on an argument group now raises an
20392040
exception. This nesting was never supported, often failed to work

Misc/NEWS.d/next/Documentation/2026-04-13-15-50-00.gh-issue-72406.Xk9mPq.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)