#NEWLINE# def print_extended_help( self , filename = None ) : #NEWLINE# #INDENT# old_suppress_help = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for group in self . option_groups : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# old_suppress_help [ group ] = group . suppress_help #NEWLINE# group . suppress_help = False #NEWLINE# #UNINDENT# except AttributeError as e : #NEWLINE# #INDENT# old_suppress_help [ group ] = None #NEWLINE# _LOGGER . debug ( ( 'Option group does not have option to suppress help; exception is ' + e . message ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . print_help ( file = filename ) #NEWLINE# for group in self . option_groups : #NEWLINE# #INDENT# if old_suppress_help [ group ] : #NEWLINE# #INDENT# group . suppress_help = True