Classes | Functions | Variables
tornado::options Namespace Reference

Classes

class  _LogFormatter
class  _Option
class  _Options
class  Error

Functions

def define
def enable_pretty_logging
def parse_command_line
def parse_config_file
def print_help

Variables

 curses = None
tuple options = _Options()

Function Documentation

def tornado.options.define (   name,
  default = None,
  type = None,
  help = None,
  metavar = None,
  multiple = False,
  group = None 
)
Defines a new command line option.

If type is given (one of str, float, int, datetime, or timedelta)
or can be inferred from the default, we parse the command line
arguments based on the given type. If multiple is True, we accept
comma-separated values, and the option value is always a list.

For multi-value integers, we also accept the syntax x:y, which
turns into range(x, y) - very useful for long integer ranges.

help and metavar are used to construct the automatically generated
command line help string. The help message is formatted like::

   --name=METAVAR      help string

group is used to group the defined options in logical groups. By default,
command line options are grouped by the defined file.

Command line option names must be unique globally. They can be parsed
from the command line with parse_command_line() or parsed from a
config file with parse_config_file.

Definition at line 313 of file options.py.

def tornado.options.enable_pretty_logging (   options = options)
Turns on formatted logging output as configured.

This is called automatically by `parse_command_line`.

Definition at line 361 of file options.py.

def tornado.options.parse_command_line (   args = None)
Parses all options given on the command line (defaults to sys.argv).

Note that args[0] is ignored since it is the program name in sys.argv.

We return a list of all arguments that are not parsed as options.

Definition at line 341 of file options.py.

Parses and loads the Python config file at the given path.

Definition at line 351 of file options.py.

def tornado.options.print_help (   file = sys.stdout)
Prints all the command line options to stdout.

Definition at line 356 of file options.py.


Variable Documentation

Definition at line 68 of file options.py.

Definition at line 306 of file options.py.



rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14