see tornado.options
Project description
see tornado.options
>>> from argoptions import options
>>> options.define('appname', default='', type=str, help='the app name')
>>> options.define('flag', default='', type=str, help='load config file by this specified flag')
>>> options.define('port', default=65535, type=int, help='run server on this specified port')
>>> options.parse_command_line()
>>>
>>>
>>>
>>> from argoptions import options
>>> port = options.options.port
>>> print(port)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
argoptions-1.0.1.tar.gz
(9.1 kB
view hashes)