(original) (raw)

changeset: 68988:8bdc20468cbc parent: 68985:2d6745f219b3 parent: 68986:d288666c1d58 user: Steven Bethard steven.bethard@gmail.com date: Sat Mar 26 21:51:56 2011 +0100 files: Doc/library/argparse.rst Misc/NEWS description: Issue #9343: Document that argparse parent parsers must be configured before their children. (Merge from 3.2.) diff -r 2d6745f219b3 -r 8bdc20468cbc Doc/library/argparse.rst --- a/Doc/library/argparse.rst Sat Mar 26 21🔞44 2011 +0100 +++ b/Doc/library/argparse.rst Sat Mar 26 21:51:56 2011 +0100 @@ -351,6 +351,11 @@ :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 ^^^^^^^^^^^^^^^ diff -r 2d6745f219b3 -r 8bdc20468cbc Misc/NEWS --- a/Misc/NEWS Sat Mar 26 21🔞44 2011 +0100 +++ b/Misc/NEWS Sat Mar 26 21:51:56 2011 +0100 @@ -304,6 +304,9 @@ - Issue #8982: Improve the documentation for the argparse Namespace object. +- Issue #9343: Document that argparse parent parsers must be configured before + their children. + Build ----- /steven.bethard@gmail.com