Beginner problem.

DelPiccolo Ivano ivano.delpiccolo at degroof.be
Mon Feb 11 06:10:20 EST 2002


How can i know if i have parameters in the command line.

Here's my script, where is the error ?

import sys

if sys.argv[??????] == "" :
    print "Usage : sys.argv[0] logname string_to_search"
else :
   ...........
    ..........
    ..........





More information about the Python-list mailing list