def main(args=None):
if args is None:<EOL><INDENT>args = sys.argv[<NUM_LIT:1>:]<EOL><DEDENT>args = docopt(__doc__, argv=args)<EOL>path, address = resolve(args['<STR_LIT>'], args['<STR_LIT>'])<EOL>host, port = split_address(address)<EOL>if address and not (host or port):<EOL><INDENT>print('<STR_LIT>', repr(address))<EOL>return<EOL><DEDENT>if path is None:<EOL><INDENT>path = '<STR_LIT:.>'<EOL><DEDENT>if host is None:<EOL><INDENT>host = '<STR_LIT:localhost>'<EOL><DEDENT>if port is None:<EOL><INDENT>port = <NUM_LIT><EOL><DEDENT>print('<STR_LIT>' % (path, host, port))<EOL>
The entry point of the application.