(title, args)
| 147 | |
| 148 | def generateInterface(self, formatter): |
| 149 | def makeDesc(title, args): |
| 150 | f = formatter.clone() |
| 151 | f.addEmphasis(title, 1) |
| 152 | out = [(f.dump(), '')] |
| 153 | for arg in args: |
| 154 | f = formatter.clone() |
| 155 | if isinstance(arg, tuple): |
| 156 | name = arg[0] |
| 157 | if len(arg) > 1: |
| 158 | description = arg[1] or '' |
| 159 | else: |
| 160 | description = '' |
| 161 | else: |
| 162 | name = arg.name |
| 163 | description = arg.description or '' |
| 164 | f.addCode(name, inline=True) |
| 165 | out.append((f.dump(), description or '')) |
| 166 | return out |
| 167 | |
| 168 | tuples = [] |
| 169 |
nothing calls this directly
no test coverage detected