cmd module

Brian Lee senux at senux.com
Fri Dec 13 05:56:48 EST 2002


Hi,

I just started cmd module and I think this is cool. I want 
characters which is typed manually by user to be 
lower (string.lower()) so that my program can catch both
``help'' and ``HELP''. 

How can I lower all the characters or how to detect this? I want
to keep one function as do_FOO(args) while all input foo, Foo, FOO
can be matched.

Sorry for bad English but I hope anybody comment about this. 
Thank you.

-- 
Brian Lee - http://www.senux.com/en/




More information about the Python-list mailing list