Package CedarBackup2 :: Package tools :: Module span :: Class SpanOptions
[show private | hide private]
[frames | no frames]

Type SpanOptions

object --+    
         |    
   Options --+
             |
            SpanOptions


Tool-specific command-line options.

Most of the cback command-line options are exactly what we need here -- logfile path, permissions, verbosity, etc. However, we need to make a few tweaks since we don't accept any actions.

Also, a few extra command line options that we accept are really ignored underneath. I just don't care about that for a tool like this.
Method Summary
  validate(self)
Validates command-line options represented by the object.
    Inherited from Options
  __init__(self, argumentList, argumentString, validate)
Initializes an options object.
  __cmp__(self, other)
Definition of equals operator for this class.
  __repr__(self)
Official string representation for class instance.
  __str__(self)
Informal string representation for class instance.
  buildArgumentList(self, validate)
Extracts options into a list of command line arguments.
  buildArgumentString(self, validate)
Extracts options into a string of command-line arguments.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from Options
  actions: Command-line actions list.
  config: Command-line configuration file (-c,--config) parameter.
  debug: Command-line debug (-d,--debug) flag.
  full: Command-line full-backup (-f,--full) flag.
  help: Command-line help (-h,--help) flag.
  logfile: Command-line logfile (-l,--logfile) parameter.
  mode: Command-line mode (-m,--mode) parameter.
  output: Command-line output (-O,--output) flag.
  owner: Command-line owner (-o,--owner) parameter, as tuple (user,group).
  quiet: Command-line quiet (-q,--quiet) flag.
  stacktrace: Command-line stacktrace (-s,--stack) flag.
  verbose: Command-line verbose (-b,--verbose) flag.
  version: Command-line version (-V,--version) flag.

Method Details

validate(self)

Validates command-line options represented by the object. There are no validations here, because we don't use any actions.
Raises:
ValueError - If one of the validations fails.
Overrides:
CedarBackup2.cli.Options.validate

Generated by Epydoc 2.1 on Thu Mar 29 20:58:31 2007 http://epydoc.sf.net