parameters: (self, prefix='')
return_statement: return '\n'.join(helplist)
docstring: Generates a help string for all known flags.
docstring_summary: Generates a help string for all known flags.
docstring_tokens: Generates a help string for all known flags .
function: def GetHelp(self, prefix=''):
      """Generates a help string for all known flags."""
      helplist = []
  
      flags_by_module = self.FlagsByModuleDict()
      if flags_by_module:
  
        modules = flags_by_module.keys()
        modules.sort()
  
        # Print the help for the main module first, if possible.
        main_module = _GetMainModule()
        if main_module in modules:
          modules.remove(main_module)
          modules = [main_module] + modules
  
        for module in modules:
          self.__RenderOurModuleFlags(module, helplist)
  
        self.__RenderModuleFlags('gflags',
                                 _SPECIAL_FLAGS.FlagDict().values(),
                                 helplist)
  
      else:
        # Just print one long list of flags.
        self.__RenderFlagList(
            self.FlagDict().values() + _SPECIAL_FLAGS.FlagDict().values(),
            helplist, prefix)
  
      return '\n'.join(helplist)
function_tokens: def GetHelp ( self , prefix = '' ) : helplist = [ ] flags_by_module = self . FlagsByModuleDict ( ) if flags_by_module : modules = flags_by_module . keys ( ) modules . sort ( ) # Print the help for the main module first, if possible. main_module = _GetMainModule ( ) if main_module in modules : modules . remove ( main_module ) modules = [ main_module ] + modules for module in modules : self . __RenderOurModuleFlags ( module , helplist ) self . __RenderModuleFlags ( 'gflags' , _SPECIAL_FLAGS . FlagDict ( ) . values ( ) , helplist ) else : # Just print one long list of flags. self . __RenderFlagList ( self . FlagDict ( ) . values ( ) + _SPECIAL_FLAGS . FlagDict ( ) . values ( ) , helplist , prefix ) return '\n' . join ( helplist )