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 <1279889847.13.0.579699796707.issue9343@psf.upfronthosting.co.za>
In-reply-to
Content
[From http://code.google.com/p/argparse/issues/detail?id=61]

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
History
Date User Action Args
2010-07-23 12:57:27bethardsetrecipients: + bethard, docs@python
2010-07-23 12:57:27bethardsetmessageid: <1279889847.13.0.579699796707.issue9343@psf.upfronthosting.co.za>
2010-07-23 12:57:25bethardlinkissue9343 messages
2010-07-23 12:57:25bethardcreate