Kaydet (Commit) 5e0062d2 authored tarafından Steven Bethard's avatar Steven Bethard

Issue #9343: Document that argparse parent parsers must be configured before…

Issue #9343: Document that argparse parent parsers must be configured before their children. (Merge from 3.2.)
üst 3f69a059
......@@ -347,6 +347,11 @@ Note that most parent parsers will specify ``add_help=False``. Otherwise, the
:class:`ArgumentParser` will see two ``-h/--help`` options (one in the parent
and one in the child) and raise an error.
.. note::
You must fully initialize the parsers before passing them via ``parents=``.
If you change the parent parsers after the child parser, those changes will
not be reflected in the child.
formatter_class
^^^^^^^^^^^^^^^
......
......@@ -239,6 +239,9 @@ Library
- Issue #8982: Improve the documentation for the argparse Namespace object.
- Issue #9343: Document that argparse parent parsers must be configured before
their children.
Extension Modules
-----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment