Package sparked :: Module launcher :: Class Options
[hide private]
[frames] | no frames]

Class Options

source code

              object --+        
                       |        
                    dict --+    
                           |    
twisted.python.usage.Options --+
                               |
                              Options

Instance Methods [hide private]
 
getSynopsis(self)
Returns a string containing a description of these options and how to pass them to the executed file.
source code
 
opt_version(self) source code

Inherited from twisted.python.usage.Options: __hash__, __init__, __str__, getUsage, opt_help, parseArgs, parseOptions, postOptions

Inherited from twisted.python.usage.Options (private): _gather_flags, _gather_handlers, _gather_parameters, _generic_flag

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]
  longdesc = 'The <application> argument specifies a Python modu...
  optFlags = [['debug', 'd', 'Debug mode'], ['no-subprocess', 'N...
  optParameters = [('id', None, None, 'Application id (defaults ...

Inherited from twisted.python.usage.Options: defaultSubCommand, parent, subCommand

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getSynopsis(self)

source code 

Returns a string containing a description of these options and how to pass them to the executed file.

Overrides: twisted.python.usage.Options.getSynopsis
(inherited documentation)

opt_version(self)

source code 
Overrides: twisted.python.usage.Options.opt_version

Class Variable Details [hide private]

longdesc

Value:
'''The <application> argument specifies a Python module which is execu\
ted as the main sparked class. To see which options hold for an applic\
ation, start:

# sparkd <application> --help
'''

optFlags

Value:
[['debug', 'd', 'Debug mode'],
 ['no-subprocess',
  'N',
  'Do not start a subprocess for crash prevention']]

optParameters

Value:
[('id',
  None,
  None,
  'Application id (defaults to the sparked module name)'),
 ('pidfile',
  None,
  None,
  'Pidfile location (defaults to /tmp/<id>/sparkd.pid)'),
...