importoptparsedefmain():parser=optparse.OptionParser('usage%prog '+\
'-f <zipfile> -d <dictionary>')parser.add_option('-f',dest='zname',type='string',\
help='specify zip file')parser.add_option('-d',dest='dname',type='string',\
help='specify dictionary file')(options,args)=parser.parse_args()if(options.zname==None)|(options.dname==None):print(parser.usage)exit(0)passelse:zname=options.znamedname=options.dnamedlist=dname.split(',')passprint('zname is ',zname)print('dname is ',dname)print('dlist is ',dlist)passif__name__=='__main__':main()pass