Home | History | Annotate | Download | only in site_compare

Lines Matching defs:string

16 import string
23 """Little helper function to see if a variable is a string."""
28 """Encapsulates errors from parsing, string arg is description."""
40 helptext: brief string description of the command
57 VALID_TYPES = ['string', 'readfile', 'int', 'flag', 'coords']
58 TYPES_WITH_VALUES = ['string', 'readfile', 'int', 'coords']
68 string - a string
99 names[-1].lstrip(string.punctuation + string.whitespace).upper())
134 """Returns a brief string describing the argument's usage."""
136 string = self.names[0]
138 string += "="+self.metaname
140 string = self.metaname
143 string = "["+string+"]"
145 return string
148 """Returns a string containing a list of the arg's names."""
155 """Returns a help string including help for all the arguments."""
172 string = '= %r' % self.value
174 string = "(absent)"
176 return "Argument %s '%s'%s" % (self.type, self.names[0], string)
180 def AddArgument(self, names, helptext, type="string", metaname=None,
413 """Convert a string from the command line to a value type."""
415 if type == 'string':
453 """Helper for sorting arguments in the usage string.
472 """Gets a string describing how the command is used."""
525 helptext: brief string description of the command
597 # there were errors, output the usage string and exit