def main():
    sys.path.insert(0, os.getcwd())

    # argument parser
    debug, no_watch = argument_parser()

    # log
    make_logging(debug)
    print_logo()
    print "pfrock version %s " % pfrock.__version__
    time.sleep(1)

    # parser
    config_server = PfrockConfigParser.do(pfrockfile)

    # routes
    if config_server:
        route_list = RoutesMgr.get_routes(config_server)
        # new frock
        p_frock = PFrock(auto_reload=not no_watch, port=config_server.port)
    else:
        route_list = []
        # new frock
        p_frock = PFrock(auto_reload=not no_watch)

    p_frock.add_watch(pfrockfile)
    p_frock.add_handler(route_list)

    # start
    try:
        p_frock.start()
    except __HOLE__:
        pass
dataset/ETHPy150Open knightliao/pfrock/pfrock/console_scripts.py/main