[Tutor] getopt module..

David Rock david at graniteweb.com
Sun Oct 22 21:41:45 CEST 2006


* Asrarahmed Kadri <ajkadri at googlemail.com> [2006-10-22 20:19]:
> Can somebody explain getopt function using a simple example..
> 
> Thanks..

This really does have a good example of usage

http://docs.python.org/lib/module-getopt.html

Essentially, you define options and arguments and what you expect to see
from them, then the 

for o, a in opts: 

section is used to replace default values with information from the
commandline.

-- 
David Rock
david at graniteweb.com


More information about the Tutor mailing list