Package twisted :: Package scripts :: Module coil :: Class Options
[frames | no frames]

Class Options

UserDict --+    
           |    
     Options --+
               |
              Options


Options for coil command.
Method Summary
  parseArgs(self, tapFile)
  postOptions(self)
I am called after the options are parsed.
    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.
  opt_version(self)
  parseOptions(self, options)
The guts of the command-line parser.
    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 = [['localhost', 'l']]
list optParameters = [['new', 'n', None], ['port', 'p', 9080]...
str synopsis = 'Usage:\n\n  coil [--new=<application name>] ...
    Inherited from Options
NoneType defaultSubCommand = None                                                                  
NoneType parent = None                                                                  
NoneType subCommand = None                                                                  

Method Details

postOptions(self)

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

optFlags

Type:
list
Value:
[['localhost', 'l']]                                                   

optParameters

Type:
list
Value:
[['new', 'n', None], ['port', 'p', 9080]]                              

synopsis

Type:
str
Value:
'''Usage:

  coil [--new=<application name>] <tap file>

'''                                                                    

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