CedarBackup2.tools.span.SpanOptions

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

# Class SpanOptions

source code

     object --+
              |
    cli.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.

Instance Methods | [hide private]
validate(self) Validates command-line options represented by the object. | source code
Inherited from `cli.Options`: `__cmp__`, `__init__`, `__repr__`, `__str__`, `buildArgumentList`, `buildArgumentString` Inherited from `cli.Options` (private): `_getActions`, `_getConfig`, `_getDebug`, `_getDiagnostics`, `_getFull`, `_getHelp`, `_getLogfile`, `_getManaged`, `_getManagedOnly`, `_getMode`, `_getOutput`, `_getOwner`, `_getQuiet`, `_getStacktrace`, `_getVerbose`, `_getVersion`, `_parseArgumentList`, `_setActions`, `_setConfig`, `_setDebug`, `_setDiagnostics`, `_setFull`, `_setHelp`, `_setLogfile`, `_setManaged`, `_setManagedOnly`, `_setMode`, `_setOutput`, `_setOwner`, `_setQuiet`, `_setStacktrace`, `_setVerbose`, `_setVersion` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties | [hide private]
Inherited from `cli.Options`: `actions`, `config`, `debug`, `diagnostics`, `full`, `help`, `logfile`, `managed`, `managedOnly`, `mode`, `output`, `owner`, `quiet`, `stacktrace`, `verbose`, `version` Inherited from `object`: `__class__`

Method Details | [hide private]

### validate(self) | source code
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: cli.Options.validate