142
141
def _help_commands_to_text(topic):
143
142
"""Generate the help text for the list of commands"""
148
144
if topic == 'hidden-commands':
155
151
shown_commands = [(n, o) for n, o in commands if o.hidden == hidden]
156
152
max_name = max(len(n) for n, o in shown_commands)
157
153
indent = ' ' * (max_name + 1)