39 lines
1.0 KiB
ReStructuredText
39 lines
1.0 KiB
ReStructuredText
``tornado.options`` --- Command-line parsing
|
|
============================================
|
|
|
|
.. automodule:: tornado.options
|
|
|
|
|
|
|
|
Global functions
|
|
----------------
|
|
|
|
.. autofunction:: define
|
|
|
|
.. py:data:: options
|
|
|
|
Global options object. All defined options are available as attributes
|
|
on this object.
|
|
|
|
.. autofunction:: parse_command_line
|
|
.. autofunction:: parse_config_file
|
|
.. autofunction:: print_help(file=sys.stderr)
|
|
.. autofunction:: add_parse_callback
|
|
.. autoexception:: Error
|
|
|
|
OptionParser class
|
|
------------------
|
|
|
|
.. autoclass:: OptionParser
|
|
|
|
.. automethod:: OptionParser.define
|
|
.. automethod:: OptionParser.parse_command_line
|
|
.. automethod:: OptionParser.parse_config_file
|
|
.. automethod:: OptionParser.print_help
|
|
.. automethod:: OptionParser.add_parse_callback
|
|
.. automethod:: OptionParser.mockable
|
|
.. automethod:: OptionParser.items
|
|
.. automethod:: OptionParser.as_dict
|
|
.. automethod:: OptionParser.groups
|
|
.. automethod:: OptionParser.group_dict
|