diff options
author | Steven Bethard <steven.bethard@gmail.com> | 2011-03-26 20:49:00 (GMT) |
---|---|---|
committer | Steven Bethard <steven.bethard@gmail.com> | 2011-03-26 20:49:00 (GMT) |
commit | d186f99d00a8f2443774c9d277c9b615aa8b6d6d (patch) | |
tree | 98ff045a259f61893aaf71b3fe5fec4e0465e1c5 /Doc/library/argparse.rst | |
parent | d8ad68f34c23645c1a1dfadd63470b3851ba5bea (diff) | |
download | cpython-d186f99d00a8f2443774c9d277c9b615aa8b6d6d.zip cpython-d186f99d00a8f2443774c9d277c9b615aa8b6d6d.tar.gz cpython-d186f99d00a8f2443774c9d277c9b615aa8b6d6d.tar.bz2 |
Issue #9343: Document that argparse parent parsers must be configured before their children.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r-- | Doc/library/argparse.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 102b3e9..2164ec0 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -351,6 +351,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 ^^^^^^^^^^^^^^^ |