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 tshepang
Recipients bethard, docs@python, eric.araujo, ezio.melotti, ncoghlan, tshepang
Date 2012-03-19.10:50:58
SpamBayes Score 1.8902018e-07
Marked as misclassified No
Message-id <CAA77j2AhPzLi=caR3ccQ47NeNZRgGAZ2iGhJpSPCug6VE9hL7w@mail.gmail.com>
In-reply-to <CAA77j2CPKe4F4CVOce5U21KvyTWhiFtDytRNTY2NjqHZXFnhDw@mail.gmail.com>
Content
> After playing a bit more with this and thinking about it a bit, I do
> get your point. It makes a lot of sense. I will attach a patch soon,
> which will also include the count keyword. Thanks for the review.

Find attached. Note that I kept some of those anti-pattern examples
you mentioned, and then later on introduced your preferred way of
doing things (using action="count" and ">=" checks instead of "=="
ones).
Files
File name Uploaded
argparse_howto2.patch tshepang, 2012-03-19.10:50:54
History
Date User Action Args
2012-03-19 10:51:00tshepangsetrecipients: + tshepang, ncoghlan, bethard, ezio.melotti, eric.araujo, docs@python
2012-03-19 10:50:58tshepanglinkissue14034 messages
2012-03-19 10:50:58tshepangcreate