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.
  _getActions(self)
Property target used to get the actions list.
  _getConfig(self)
Property target used to get the config parameter.
  _getDebug(self)
Property target used to get the debug flag.
  _getFull(self)
Property target used to get the full flag.
  _getHelp(self)
Property target used to get the help flag.
  _getLogfile(self)
Property target used to get the logfile parameter.
  _getMode(self)
Property target used to get the mode parameter.
  _getOutput(self)
Property target used to get the output flag.
  _getOwner(self)
Property target used to get the owner parameter.
  _getQuiet(self)
Property target used to get the quiet flag.
  _getStacktrace(self)
Property target used to get the stacktrace flag.
  _getVerbose(self)
Property target used to get the verbose flag.
  _getVersion(self)
Property target used to get the version flag.
  _parseArgumentList(self, argumentList)
Internal method to parse a list of command-line arguments.
  _setActions(self, value)
Property target used to set the actions list.
  _setConfig(self, value)
Property target used to set the config parameter.
  _setDebug(self, value)
Property target used to set the debug flag.
  _setFull(self, value)
Property target used to set the full flag.
  _setHelp(self, value)
Property target used to set the help flag.
  _setLogfile(self, value)
Property target used to set the logfile parameter.
  _setMode(self, value)
Property target used to set the mode parameter.
  _setOutput(self, value)
Property target used to set the output flag.
  _setOwner(self, value)
Property target used to set the owner parameter.
  _setQuiet(self, value)
Property target used to set the quiet flag.
  _setStacktrace(self, value)
Property target used to set the stacktrace flag.
  _setVerbose(self, value)
Property target used to set the verbose flag.
  _setVersion(self, value)
Property target used to set the version flag.
    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