optparse -- anyway to find if the user entered an option?

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Sat Apr 14 22:54:36 EDT 2007


On Sat, 14 Apr 2007 16:49:22 -0700, Karthik Gurusamy wrote:

> I'm wondering if there is a cleaner approach -- something like
> parser.opt_seen("-i")

What do dir(parser) and help(parser) say?



-- 
Steven.





More information about the Python-list mailing list