Package foolscap :: Package logging :: Module filter :: Class FilterOptions
[hide private]
[frames] | no frames]

Class FilterOptions

source code

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

Instance Methods [hide private]
 
parseArgs(self, oldfile, newfile=None)
I am called with any leftover arguments which were not options.
source code
 
opt_after(self, arg) source code
 
opt_before(self, arg) source code
 
opt_above(self, arg) source code

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

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]
  stdout = sys.stderr
  stderr = sys.stderr
  synopsis = 'Usage: flogtool filter [options] OLDFILE.pickle NE...
  optParameters = [['after', None, None, 'include events after t...
  optFlags = [['verbose', 'v', 'emit event numbers during proces...

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parseArgs(self, oldfile, newfile=None)

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 [hide private]

synopsis

Value:
'Usage: flogtool filter [options] OLDFILE.pickle NEWFILE.pickle'

optParameters

Value:
[['after',
  None,
  None,
  'include events after timestamp (seconds since epoch)'],
 ['before', None, None, 'include events before timestamp'],
 ['strip-facility',
  None,
  None,
...

optFlags

Value:
[['verbose',
  'v',
  'emit event numbers during processing (useful to isolate an unloadab\
le event pickle']]