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 object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

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