(self, prefix='')
return '\n'.join(helplist)
Generates a help string for all known flags.
Generates a help string for all known flags.
Generates a help string for all known flags .
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)
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 )