#NEWLINE# def get_option_scope_help_info( self , option_registrations_iter ) : #NEWLINE# #INDENT# 'Returns an OptionScopeHelpInfo for the options registered with the (args, kwargs) pairs.' #NEWLINE# basic_options = [ ] #NEWLINE# recursive_options = [ ] #NEWLINE# advanced_options = [ ] #NEWLINE# for ( args , kwargs ) in sorted ( option_registrations_iter ) : #NEWLINE# #INDENT# ohi = self . get_option_help_info ( args , kwargs ) #NEWLINE# if kwargs . get ( 'advanced' ) : #NEWLINE# #INDENT# advanced_options . append ( ohi ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( kwargs . get ( 'recursive' ) and ( not kwargs . get ( 'recursive_root' ) ) ) : #NEWLINE# #INDENT# recursive_options . append ( ohi ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# basic_options . append ( ohi ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return OptionScopeHelpInfo ( scope = self . _scope , basic = basic_options , recursive = recursive_options , advanced = advanced_options )