This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bethard
Recipients bethard, docs@python
Date 2010-07-23.12:57:25
SpamBayes Score 0.0528584
Marked as misclassified No
Message-id <>

It should be documented clearly that only the arguments present on the parent parser at the time ArgumentParser is called will be included in the parser.

>>> parent = argparse.ArgumentParser(add_help=False)
>>> child = argparse.ArgumentParser(parents=[parent])
>>> parent.add_argument('--foo', action='store_true')
>>> child.parse_args(['--foo'])
usage: [-h]
: error: unrecognized arguments: --foo
Date User Action Args
2010-07-23 12:57:27bethardsetrecipients: + bethard, docs@python
2010-07-23 12:57:27bethardsetmessageid: <>
2010-07-23 12:57:25bethardlinkissue9343 messages
2010-07-23 12:57:25bethardcreate