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 : ........... .......... ..........