tools/site_compare/command_line.py
def GetHelpString(self, width=80, indent=5, names_width=20, gutter=2):
      """Returns a help string including help for all the arguments."""
      names = [" "*indent + line +" "*(names_width-len(line)) for line in
               textwrap.wrap(self.GetNames(), names_width)]

      helpstring = textwrap.wrap(self.helptext, width-indent-names_width-gutter)

      if len(names) < len(helpstring):
        names += [" "*(indent+names_width)]*(len(helpstring)-len(names))

      if len(helpstring) < len(names):
        helpstring += [""]*(len(names)-len(helpstring))

      return "\n".join([name_line + " "*gutter + help_line for
                        name_line, help_line in zip(names, helpstring)])
Returns a help string including help for all the arguments.
Returns a help string including help for all the arguments.
Returns a help string including help for all the arguments .
def GetHelpString(self, width=80, indent=5, names_width=20, gutter=2):
      names = [" "*indent + line +" "*(names_width-len(line)) for line in
               textwrap.wrap(self.GetNames(), names_width)]
      helpstring = textwrap.wrap(self.helptext, width-indent-names_width-gutter)
      if len(names) < len(helpstring):
        names += [" "*(indent+names_width)]*(len(helpstring)-len(names))
      if len(helpstring) < len(names):
        helpstring += [""]*(len(names)-len(helpstring))
      return "\n".join([name_line + " "*gutter + help_line for
                        name_line, help_line in zip(names, helpstring)])
def GetHelpString ( self , width = 80 , indent = 5 , names_width = 20 , gutter = 2 ) : names = [ " " * indent + line + " " * ( names_width - len ( line ) ) for line in textwrap . wrap ( self . GetNames ( ) , names_width ) ] helpstring = textwrap . wrap ( self . helptext , width - indent - names_width - gutter ) if len ( names ) < len ( helpstring ) : names += [ " " * ( indent + names_width ) ] * ( len ( helpstring ) - len ( names ) ) if len ( helpstring ) < len ( names ) : helpstring += [ "" ] * ( len ( names ) - len ( helpstring ) ) return "\n" . join ( [ name_line + " " * gutter + help_line for name_line , help_line in zip ( names , helpstring ) ] )
Returns a help string including help for all the arguments.
Returns a help string including help for all the arguments .
"""Returns a help string including help for all the arguments."""
self
width
indent
names_width
gutter