Package twisted :: Package scripts :: Module mktap :: Class FirstPassOptions
[frames | no frames]

Class FirstPassOptions

GeneralOptions --+
                 |
  UserDict --+   |
             |   |
       Options --+
                 |
                FirstPassOptions


Method Summary
  __init__(self)
  _reportDebug(self, info)
  _reportProgress(self, info)
  opt_h(self)
Display this message
  opt_help(self)
Display this message
  parseArgs(self)
I am called with any leftover arguments which were not options.
  postOptions(self)
I am called after the options are parsed.
    Inherited from Options
  __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_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(...)
    Inherited from GeneralOptions
  init(self, tapLookup)

Class Variable Summary
    Inherited from Options
NoneType defaultSubCommand = None                                                                  
NoneType parent = None                                                                  
NoneType subCommand = None                                                                  
    Inherited from GeneralOptions
list optFlags = [['xml', 'x', 'DEPRECATED: same as --type=xml...
list optParameters = [['uid', 'u', 1046, 'The uid to run as.'...
str synopsis = 'Usage:    mktap [options] <command> [command...

Method Details

opt_h(self)

Display this message
Overrides:
twisted.python.usage.Options.opt_help

opt_help(self)

Display this message
Overrides:
twisted.python.usage.Options.opt_help

parseArgs(self, *rest)

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)

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)

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