Package buildbot :: Package scripts :: Module runner :: Class SendChangeOptions
[frames] | no frames]

Class SendChangeOptions

source code

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

Instance Methods
new empty dictionary

__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getSynopsis(self)
Returns a string containing a description of these options and how to pass them to the executed file.
source code
 
parseArgs(self, *args)
I am called with any leftover arguments which were not options.
source code
 
opt_property(self, property) source code

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

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

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Class Variables
  optParameters = [('master', 'm', None, 'Location of the buildm...
  buildbotOptions = [['master', 'master'], ['username', 'usernam...

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

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)

parseArgs(self, *args)

source code 

I am called with any leftover arguments which were not options.

Override me to do something with the remaining arguments on the command line, those which were not flags or options. e.g. interpret them as a list of files to operate on.

Note that if there more arguments on the command line than this method accepts, parseArgs will blow up with a getopt.error. This means if you don't override me, parseArgs will blow up if I am passed any arguments at all!

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

Class Variable Details

optParameters

Value:
[('master',
  'm',
  None,
  'Location of the buildmaster\'s PBListener (host:port)'),
 ('username', 'u', None, 'Username performing the commit'),
 ('repository', 'R', None, 'Repository specifier'),
 ('project', 'P', None, 'Project specifier'),
 ('branch', 'b', None, 'Branch specifier'),
...

buildbotOptions

Value:
[['master', 'master'],
 ['username', 'username'],
 ['branch', 'branch'],
 ['category', 'category']]