[getopt-sig] The bake-off
Greg Ward
gward@python.net
Thu, 30 May 2002 15:19:33 -0400
On 30 May 2002, rsc@plan9.bell-labs.com said:
> if parser behaved like a list, then you could have
>
> parser.append(Option("-n", type="int", dest="num_things"))
>
> which strikes me as not clunky and still general.
If you want OptionParser to implement the sequence interface, submit a
patch. I'm +0 on the idea, so I'd probably accept a well-written patch,
but I'm unlikely to bother implementing it myself.
Greg
--
Greg Ward - Python bigot gward@python.net
http://starship.python.net/~gward/
Know thyself. If you need help, call the CIA.