Lines Matching full:name
22 def getDescription(self, section, name): argument
23 return self._desc[(section, name)]
25 def setDescription(self, section, name, desc): argument
28 self._desc[(section, name)] = desc
31 def addArgument(self, section, name, desc): argument
32 '''Add an argument with given name and string to an information section'''
35 if name in self.sections[section][1]:
36 name += '@'+str(len([n for n in self.sections[section][1] if name == n.split('@')[0]])+1)
37 self.sections[section][1].append(name)
38 self.setDescription(section, name, desc)
49 '''Returns the maximum name and description lengths'''
54 …descLen = max([descLen, max(map(lambda name: len(self.getDescription(section, name)), self.section…
67 for name in names[1]:
68 f.write(format % (name.split('@')[0], self.getDescription(section, name)))
82 def getDescription(self, section, name): argument
83 return self.argDB.getType(self.getArgName(name)).help
85 def setDescription(self, section, name, desc): argument
88 def getArgName(self, name): argument
89 …'''Return the RDict key corresponding to a more verbose help name. Right now, this means discard e…
90 #return name.split('=')[0].strip('-')
91 argName = name.split('=')[0]
95 def addArgument(self, section, name, argType, ignoreDuplicates = 0): argument
96 …'''Add an argument with given name and type to a help section. The type, which can also have an in…
97 ## super(Info, self).addArgument(section, name, None)
99 if name in self.sections[section][1]:
102 raise RuntimeError('Duplicate configure option '+name+' in section '+section)
106 self.sections[section][1].append(name)
108 self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
111 def addDownload(self,name,dlist): argument
115 self.argDB.dlist[name] = dlist
131 for name in names[1]:
132 arg_name = self.getArgName(name)
136 f.write(' -{}\n {} current: {}\n'.format(name, arg_help, arg_type))
138 f.write(' -{}\n {}\n'.format(name, arg_help))
149 # Packages all have -- for whatever reason -- an uppercase section name, so use this
162 # sort packages by name