Package foolscap :: Package logging :: Module cli :: Class Options
[hide private]
[frames] | no frames]

Class Options

source code

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

Instance Methods [hide private]
 
postOptions(self)
I am called after the options are parsed.
source code
 
opt_help(self)
Display this help and exit.
source code
 
opt_version(self) source code

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

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__, 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 [hide private]
  synopsis = 'Usage: flogtool (tail|create-gatherer|dump|filter|...
  subCommands = [('tail', None, <class 'foolscap.logging.tail.Ta...

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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)

opt_help(self)

source code 

Display this help and exit.

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

opt_version(self)

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

Class Variable Details [hide private]

synopsis

Value:
'Usage: flogtool (tail|create-gatherer|dump|filter|web-viewer)'

subCommands

Value:
[('tail',
  None,
  <class 'foolscap.logging.tail.TailOptions'>,
  'follow logs of the target node'),
 ('create-gatherer',
  None,
  <class 'foolscap.logging.gatherer.CreateGatherOptions'>,
  'Make a .tac which will record all logs to a given directory'),
...