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 guettli
Recipients guettli
Date 2013-01-11.13:44:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357911858.69.0.0703193383433.issue16933@psf.upfronthosting.co.za>
In-reply-to
Content
The current argparse documentation is not easy to read people new to python.

http://docs.python.org/dev/library/argparse.html#choices

{{{
current: parser.add_argument('foo', choices='abc')
}}}

Please make this more explicit:
{{{
better: parser.add_argument('foo', choices=['one', 'two', 'three'])
}}}

{{{
current: parser.parse_args('c'.split()) # looks like perl to me
}}}

{{{
better: parser.parse_args(['c'])
}}}

Next: Please use a more common type, not "complex" in the choices example. It confuses a lot of people.
History
Date User Action Args
2013-01-11 13:44:18guettlisetrecipients: + guettli
2013-01-11 13:44:18guettlisetmessageid: <1357911858.69.0.0703193383433.issue16933@psf.upfronthosting.co.za>
2013-01-11 13:44:18guettlilinkissue16933 messages
2013-01-11 13:44:18guettlicreate