Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page