#NEWLINE# @ classmethod #NEWLINE# def convert_2_object( cls , dic , options , namedoptions ) : #NEWLINE# #INDENT# names = dic [ 'names' ] #NEWLINE# cls_name = dic [ '__class__' ] #NEWLINE# assert ( cls_name in ( 'Option' , 'Command' , 'Argument' ) ) #NEWLINE# if ( cls_name == 'Option' ) : #NEWLINE# #INDENT# return Option . convert_2_object ( dic , options , namedoptions ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cls_name == 'Command' ) : #NEWLINE# #INDENT# cls = Command #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cls_name == 'Argument' ) : #NEWLINE# #INDENT# cls = Argument #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# default = dic [ 'default' ] #NEWLINE# return cls ( * names , ** { #NEWLINE# #INDENT# 'default' : default , #NEWLINE# #UNINDENT# } )