Skip to content

Commit a879304

Browse files
committed
argparse subnamespace: Add NEWS and whatsnew sections
1 parent 93daa90 commit a879304

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,12 @@ argparse
835835
double backticks (RST inline-literal style).
836836
(Contributed by Hugo van Kemenade in :gh:`149375`.)
837837

838+
* Added ``subnamespace`` keyword-only flag to
839+
:meth:`argparse._SubParsersAction.add_parser` to allow nested
840+
:class:`argparse.Namespace`\ s, which correspond with the hierarchical
841+
nature of subparsers. By default ``subnamespace`` is ``False`` for
842+
backwards compatibility.
843+
838844

839845
array
840846
-----
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Add ``subnamespace`` keyword-only flag to
2+
:meth:`argparse._SubParsersAction.add_parser` to allow nested
3+
:class:`argparse.Namespace`\ s, which correspond with the hierarchical
4+
nature of subparsers. By default ``subnamespace`` is ``False`` for
5+
backwards compatibility.

0 commit comments

Comments
 (0)