[Tutor] Optparse question: if only certain values are acceptable
Kent Johnson
kent37 at tds.net
Sat May 9 12:41:25 CEST 2009
On Fri, May 8, 2009 at 9:09 PM, Terry Carroll <carroll at tjc.com> wrote:
> It's exactly what I was looking for. Thanks very much.
>
> Now I'm going to have to re-read the docs and see why I couldn't pick that
> up from them.
You have to read pretty far down, to the sections on Option attributes
and Standard Option Types
http://docs.python.org/library/optparse.html#option-attributes
http://docs.python.org/library/optparse.html#standard-option-types
Kent
More information about the Tutor
mailing list