Package twisted :: Package scripts :: Module twistd :: Class ServerOptions
[frames | no frames]

Class ServerOptions

UserDict --+    
           |    
     Options --+
               |
              ServerOptions


Method Summary
  opt_g(self, pkgname)
read config.tac from a plugin package, as with -y
  opt_plugin(self, pkgname)
read config.tac from a plugin package, as with -y
  opt_spew(self)
Print an insanely verbose log of everything that happens.
  opt_version(self)
Print version information and exit.
    Inherited from Options
  __init__(self)
  __hash__(self)
  __str__(self, width)
  _gather_flags(self)
Gather up boolean (flag) options.
  _gather_handlers(self)
Gather up options with their own handler methods.
  _gather_parameters(self)
Gather options which take a value.
  _generic_flag(self, flagName, value)
  _generic_parameter(self, parameterName, value)
  getSynopsis(self)
  getUsage(self, width)
  opt_help(self)
Display this help and exit.
  parseArgs(self)
I am called with any leftover arguments which were not options.
  parseOptions(self, options)
The guts of the command-line parser.
  postOptions(self)
I am called after the options are parsed.
    Inherited from UserDict
  __cmp__(...)
  __contains__(...)
  __delitem__(...)
  __getitem__(...)
  __len__(...)
  __repr__(...)
  __setitem__(...)
  clear(...)
  copy(...)
  get(...)
  has_key(...)
  items(...)
  iteritems(...)
  iterkeys(...)
  itervalues(...)
  keys(...)
  popitem(...)
  setdefault(...)
  update(...)
  values(...)

Class Variable Summary
list optFlags = [['nodaemon', 'n', "don't daemonize"], ['save...
list optParameters = [['logfile', 'l', None, 'log to a specif...
str synopsis = 'Usage: twistd [options]'
    Inherited from Options
NoneType defaultSubCommand = None                                                                  
NoneType parent = None                                                                  
NoneType subCommand = None                                                                  

Method Details

opt_g(self, pkgname)

read config.tac from a plugin package, as with -y

opt_plugin(self, pkgname)

read config.tac from a plugin package, as with -y

opt_spew(self)

Print an insanely verbose log of everything that happens. Useful when debugging freezes or locks in complex code.

opt_version(self)

Print version information and exit.
Overrides:
twisted.python.usage.Options.opt_version

Class Variable Details

optFlags

Type:
list
Value:
[['nodaemon', 'n', "don't daemonize"],
 ['savestats',
  None,
  'save the Stats object rather than the text output of the profiler.'\
],
 ['debug',
  'b',
  'run the application in the Python Debugger (implies nodaemon), send\
...                                                                    

optParameters

Type:
list
Value:
[['logfile', 'l', None, 'log to a specified file, - for stdout'],
 ['profile',
  'p',
  None,
  'Run in profile mode, dumping results to specified file'],
 ['file', 'f', 'twistd.tap', 'read the given .tap file'],
 ['prefix', None, 'twisted', 'use the given prefix when syslogging'],
 ['python', 'y', None, 'read an application from within a Python file'\
...                                                                    

synopsis

Type:
str
Value:
'Usage: twistd [options]'                                              

Generated by Epydoc 2.0 on Sat Sep 13 04:21:05 2003 http://epydoc.sf.net