#NEWLINE# def __init__( self , options , defaults = None ) : #NEWLINE# #INDENT# self . defaults = ( data if defaults else { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . options = self . _parse_options ( options ) #NEWLINE# self . arguments = self . _parse_arguments ( options ) #NEWLINE# self . commands = self . _parse_commands ( options ) #NEWLINE# self . active_commands = self . _parse_active_commands ( self . commands ) #NEWLINE# self . active_command = self . _parse_active_command ( self . active_commands ) #NEWLINE# data = dict ( ( self . options . items ( ) + self . arguments . items ( ) ) ) #NEWLINE# self . data = self . _parse_default_values ( data , self . defaults )