Lines Matching refs:argv
341 def main(argv): argument
345 if (len(argv)<4):
366 if (argv[1]=='bin'):
367 binary2header(argv[2],argv[3],argv[4],0)
368 elif (argv[1]=='txt'):
369 header2binary(argv[2],None,0,argv[3],argv[4])
370 elif (argv[1]=='bin16'):
371 if (len(argv)==5):
372 binary2header(argv[2],argv[3],argv[4],1,None,None)
373 elif (len(argv)==7):
374 binary2header(argv[2],argv[3],argv[4],1,argv[5],argv[6])
375 elif (argv[1]=='bin24'):
376 if (len(argv)==5):
377 binary2header(argv[2],argv[3],argv[4],2,None,None)
378 elif (len(argv)==7):
379 binary2header(argv[2],argv[3],argv[4],2,argv[5],argv[6])
380 elif (argv[1]=='txt16'):
381 if (len(argv)==4):
382 header2binary(argv[2],argv[3],1,None,None)
383 elif (len(argv)==6):
384 header2binary(argv[2],argv[3],1,argv[4],argv[5])
385 elif (argv[1]=='txt24'):
386 if (len(argv)==4):
387 header2binary(argv[2],argv[3],2,None,None)
388 elif (len(argv)==6):
389 header2binary(argv[2],argv[3],2,argv[4],argv[5])
397 main(sys.argv)