#NEWLINE# def processArguments( self , superpipeline , args , gkno ) : #NEWLINE# #INDENT# pipeline = superpipeline . pipeline #NEWLINE# longFormArguments = [ ] #NEWLINE# shortFormArguments = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for argument in args . arguments . keys ( ) : #NEWLINE# #INDENT# longFormArguments . append ( argument ) #NEWLINE# shortFormArguments [ args . arguments [ argument ] . shortFormArgument ] = argument #NEWLINE# #UNINDENT# for argument in self . arguments : #NEWLINE# #INDENT# values = self . arguments [ argument ] #NEWLINE# pipelineShortFormArguments = superpipeline . pipelineConfigurationData [ pipeline ] . shortFormArguments #NEWLINE# if ( argument . strip ( '-' ) in superpipeline . tasks ) : #NEWLINE# #INDENT# if ( argument . strip ( '-' ) in self . tasksAsArguments ) : #NEWLINE# #INDENT# for value in values : #NEWLINE# #INDENT# self . tasksAsArguments [ argument . strip ( '-' ) ] . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . tasksAsArguments [ argument . strip ( '-' ) ] = values #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( argument in gkno . arguments ) : #NEWLINE# #INDENT# shortFormArgument = gkno . arguments [ argument ] . shortFormArgument #NEWLINE# dataType = gkno . arguments [ argument ] . dataType #NEWLINE# if ( argument not in self . gknoArguments ) : #NEWLINE# #INDENT# self . gknoArguments [ argument ] = [ ] #NEWLINE# #UNINDENT# for value in values : #NEWLINE# #INDENT# if ( not dataConsistency . isCorrectDataType ( value , dataType ) ) : #NEWLINE# #INDENT# self . errors . invalidValue ( argument , shortFormArgument , value , dataType , True ) #NEWLINE# #UNINDENT# self . gknoArguments [ argument ] . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( argument in gkno . shortForms ) : #NEWLINE# #INDENT# longFormArgument = gkno . shortForms [ argument ] #NEWLINE# dataType = gkno . arguments [ longFormArgument ] . dataType #NEWLINE# if ( longFormArgument not in self . gknoArguments ) : #NEWLINE# #INDENT# self . gknoArguments [ longFormArgument ] = [ ] #NEWLINE# #UNINDENT# for value in values : #NEWLINE# #INDENT# if ( not dataConsistency . isCorrectDataType ( value , dataType ) ) : #NEWLINE# #INDENT# self . errors . invalidValue ( longFormArgument , argument , value , dataType , True ) #NEWLINE# #UNINDENT# self . gknoArguments [ longFormArgument ] . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( argument in longFormArguments ) : #NEWLINE# #INDENT# shortFormArgument = args . arguments [ argument ] . shortFormArgument #NEWLINE# dataType = args . arguments [ argument ] . dataType #NEWLINE# if ( argument not in self . pipelineArguments ) : #NEWLINE# #INDENT# self . pipelineArguments [ argument ] = [ ] #NEWLINE# #UNINDENT# if ( dataType == 'flag' ) : #NEWLINE# #INDENT# self . pipelineArguments [ argument ] = [ 'set' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for value in values : #NEWLINE# #INDENT# if ( not dataConsistency . isCorrectDataType ( value , dataType ) ) : #NEWLINE# #INDENT# self . errors . invalidValue ( argument , shortFormArgument , value , dataType , False ) #NEWLINE# #UNINDENT# self . pipelineArguments [ argument ] . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( argument in shortFormArguments ) : #NEWLINE# #INDENT# longFormArgument = shortFormArguments [ argument ] #NEWLINE# dataType = args . arguments [ longFormArgument ] . dataType #NEWLINE# if ( longFormArgument not in self . pipelineArguments ) : #NEWLINE# #INDENT# self . pipelineArguments [ longFormArgument ] = [ ] #NEWLINE# #UNINDENT# if ( dataType == 'flag' ) : #NEWLINE# #INDENT# self . pipelineArguments [ longFormArgument ] = [ 'set' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for value in values : #NEWLINE# #INDENT# if ( not dataConsistency . isCorrectDataType ( value , dataType ) ) : #NEWLINE# #INDENT# self . errors . invalidValue ( longFormArgument , argument , value , dataType , False ) #NEWLINE# #UNINDENT# self . pipelineArguments [ longFormArgument ] . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . errors . invalidArgument ( argument )