Package buildslave :: Package scripts :: Module runner :: Class Options
[frames] | no frames]

Class Options

source code

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

Instance Methods
 
opt_version(self)
Display Twisted version and exit.
source code
 
opt_verbose(self) source code
 
postOptions(self)
I am called after the options are parsed.
source code

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

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, viewitems, viewkeys, viewvalues

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

Class Variables
  synopsis = 'Usage: buildslave <command> [command options]'
  subCommands = [['create-slave', None, <class 'buildslave.scrip...

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

Properties

Inherited from object: __class__

Method Details

opt_version(self)

source code 

Display Twisted version and exit.

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

postOptions(self)

source code 

I am called after the options are parsed.

Override this method in your subclass to do something after the options have been parsed and assigned, like validate that all options are sane.

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

Class Variable Details

subCommands

Value:
[['create-slave',
  None,
  <class 'buildslave.scripts.runner.SlaveOptions'>,
  'Create and populate a directory for a new buildslave'],
 ['upgrade-slave',
  None,
  <class 'buildslave.scripts.runner.UpgradeSlaveOptions'>,
  'Upgrade an existing buildslave directory for the current version'],
...