The usage details sections of the help string.
(component, actions_grouped_by_kind)
| 285 | |
| 286 | |
| 287 | def _UsageDetailsSections(component, actions_grouped_by_kind): |
| 288 | """The usage details sections of the help string.""" |
| 289 | groups, commands, values, indexes = actions_grouped_by_kind |
| 290 | |
| 291 | sections = [] |
| 292 | if groups.members: |
| 293 | sections.append(_MakeUsageDetailsSection(groups)) |
| 294 | if commands.members: |
| 295 | sections.append(_MakeUsageDetailsSection(commands)) |
| 296 | if values.members: |
| 297 | sections.append(_ValuesUsageDetailsSection(component, values)) |
| 298 | if indexes.members: |
| 299 | sections.append(('INDEXES', _NewChoicesSection('INDEX', indexes.names))) |
| 300 | |
| 301 | return sections |
| 302 | |
| 303 | |
| 304 | def _GetSummary(info): |
no test coverage detected