from optparse import OptionParser import sys def main(): p = OptionParser() p.add_option('-n','--name',dest='person_name',help='person\'s name',default='person1') p.add_option('-a','--age',default=30, help='person\'s age') p.add_option('-j','--job',d…