tools/site_compare/command_line.py
def GetUsageString(self, width=80, name=None):
    """Gets a string describing how the command is used."""
    if name is None: name = self.names[0]

    initial_indent = "Usage: %s %s " % (self.cmdline.prog, name)
    subsequent_indent = " " * len(initial_indent)

    sorted_args = self.args[:]
    sorted_args.sort(self.SortArgs())

    return textwrap.fill(
      " ".join([arg.GetUsageString() for arg in sorted_args]), width,
      initial_indent=initial_indent,
      subsequent_indent=subsequent_indent)
Gets a string describing how the command is used.
Gets a string describing how the command is used.
Gets a string describing how the command is used .
def GetUsageString(self, width=80, name=None):
    if name is None: name = self.names[0]
    initial_indent = "Usage: %s %s " % (self.cmdline.prog, name)
    subsequent_indent = " " * len(initial_indent)
    sorted_args = self.args[:]
    sorted_args.sort(self.SortArgs())
    return textwrap.fill(
      " ".join([arg.GetUsageString() for arg in sorted_args]), width,
      initial_indent=initial_indent,
      subsequent_indent=subsequent_indent)
def GetUsageString ( self , width = 80 , name = None ) : if name is None : name = self . names [ 0 ] initial_indent = "Usage: %s %s " % ( self . cmdline . prog , name ) subsequent_indent = " " * len ( initial_indent ) sorted_args = self . args [ : ] sorted_args . sort ( self . SortArgs ( ) ) return textwrap . fill ( " " . join ( [ arg . GetUsageString ( ) for arg in sorted_args ] ) , width , initial_indent = initial_indent , subsequent_indent = subsequent_indent )
Gets a string describing how the command is used.
Gets a string describing how the command is used .
"""Gets a string describing how the command is used."""
self
width
name