#NEWLINE# def had_argument_for( self , option ) : #NEWLINE# #INDENT# trial1 = ( '--' + option ) #NEWLINE# trial2 = ( '-D' + option ) #NEWLINE# previous_is_plaind = False #NEWLINE# for i in self . original_cmd_line_args : #NEWLINE# #INDENT# if ( i . startswith ( trial1 ) or i . startswith ( trial2 ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( trial1 and i . startswith ( option ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# previous_is_plaind = ( i == '-D' ) #NEWLINE# #UNINDENT# return False