Package SCons :: Package Script :: Module Main :: Class FakeOptionParser
[hide private]
[frames] | no frames]

Class FakeOptionParser

source code

object --+
         |
        FakeOptionParser

A do-nothing option parser, used for the initial OptionsParser variable.

During normal SCons operation, the OptionsParser is created right away by the main() function. Certain tests scripts however, can introspect on different Tool modules, the initialization of which can try to add a new, local option to an otherwise uninitialized OptionsParser object. This allows that introspection to happen without blowing up.

Nested Classes [hide private]
  FakeOptionValues
Instance Methods [hide private]
 
add_local_option(self, *args, **kw) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  values = FakeOptionValues()
Properties [hide private]

Inherited from object: __class__