import tornado.ioloop
import tornado.httpserver
from pyprint import Application


if __name__ == '__main__':
    http_server = tornado.httpserver.HTTPServer(Application())
    http_server.listen(8888)

    tornado.ioloop.IOLoop.instance().start()
@@ -45,161 +45,561 @@
 ver%0A
-from pyprint import Application%0A%0A%0Aif __name__ == '__main__':%0A    http_server = tornado.httpserver.HTTPServer(Application())%0A    http_server.listen(8888)%0A
+import tornado.options%0Afrom tornado.options import options, define%0A%0Afrom pyprint import Application%0A%0Adefine('port', default=8888, help='listen on the port', type=int)%0Adefine('address', default='0.0.0.0', help='binding at given address', type=str)%0A%0Aif __name__ == '__main__':%0A    tornado.options.parse_command_line()%0A    http_server = tornado.httpserver.HTTPServer(Application())%0A    http_server.listen(options.port, address=options.address)%0A    print '%5B+%5D PyPrint listening on %7Baddress%7D:%7Bport%7D'.format(address=options.address,%0A        port=options.port)
 %0A   
@@ -639,8 +639,9 @@
 .start()
+%0A

add command options support