def process_options(pkg_version, sys_argv, option_list=None):
usage_str="""<STR_LIT>"""<EOL>optparser = OptionParser(usage=usage_str, option_list=option_list,<EOL>version="<STR_LIT>" % pkg_version)<EOL>optparser.add_option("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT:host>", default='<STR_LIT:127.0.0.1>',<EOL>action="<STR_LIT:store>", type='<STR_LIT:string>', metavar='<STR_LIT>',<EOL>help="<STR_LIT>")<EOL>optparser.add_option("<STR_LIT>", "<STR_LIT>", dest="<STR_LIT:port>", default=<NUM_LIT>,<EOL>action="<STR_LIT:store>", type='<STR_LIT:int>', metavar='<STR_LIT>',<EOL>help="<STR_LIT>"<EOL>"<STR_LIT>")<EOL>optparser.add_option("<STR_LIT>", dest="<STR_LIT>", default=<NUM_LIT:0>,<EOL>action="<STR_LIT:store>", type='<STR_LIT:int>', metavar='<STR_LIT>',<EOL>help="<STR_LIT>"<EOL>"<STR_LIT>")<EOL>optparser.disable_interspersed_args()<EOL>sys.argv = list(sys_argv)<EOL>(opts, sys.argv) = optparser.parse_args()<EOL>return opts, sys.argv<EOL>
Handle debugger options. Set `option_list' if you are writing
    another main program and want to extend the existing set of debugger
    options.

    The options dicionary from opt_parser is return. sys_argv is
    also updated.