Re: process command line parameter

2009-01-18 Thread Thorsten Kampe
* asit (Sat, 17 Jan 2009 13:28:12 -0800 (PST)) > 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 helpf

Re: process command line parameter

2009-01-17 Thread Cameron Simpson
On 17Jan2009 13:28, asit wrote: | 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" Indeed. While I can't speak for

process command line parameter

2009-01-17 Thread asit
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 paramete