#!/usr/bin/env python
# -*- coding: utf-8 -*-

import tornado.ioloop
import tornado.options
import tornado.httpserver

from Pomash import Application
from tornado.options import define, options

define("port", default=8080, help="run on the given port for develop", type=int)


def main():
    tornado.options.parse_command_line()
    http_server = tornado.httpserver.HTTPServer(Application())
    http_server.listen(options.port)
    tornado.ioloop.IOLoop.current().start()


if __name__ == "__main__":
    main()
