Lines Matching refs:sys
5 import sys
8 print "Usage:" + sys.argv[0] + " [-s serial_number] [-r] dir"
13 if (len(sys.argv) > 5):
15 sys.exit(1)
33 sys.exit(1)
36 if sys.argv[1] == "-s":
37 if len(sys.argv) < 4:
39 sys.exit(1)
40 device = " -s %s" % sys.argv[2]
45 if sys.argv[argv_next] == "-r" :
47 output_dir = sys.argv[argv_next+1]
50 output_dir = sys.argv[argv_next]
60 print "Try \"" + sys.argv[0] + " -r " + output_dir + "\""
63 sys.exit(1)
70 sys.exit(1)