process command line parameter

asit lipun4u at gmail.com
Sat Jan 17 16:28:12 EST 2009


Recently I was coding a link extractor. It's a command line stuff and
takes parameter as argument.
I found that the in operator is not always helpful.
eg. if "--all" in sys.argv:
           print "all links will be printed"

its not helpful when some attribute value is sent in command line
parameter.
hence I want to process some data like find=".co.uk"

How can i do this ???



More information about the Python-list mailing list