Method code for $command_lib.format_commands_long()

[Turn on line numbering]
arg cmds, type, clen;
var def, name, c, cdef, line, o, cs, dname;

o = [];
for def in (cmds.keys()) {
    o += [type + " commands on " + def.name() + ":"];
    for cdef in (cmds[def]) {
        for c in (cdef[2])
            o += ["  " + toliteral(c[3]).left(clen) + "." + tostr(c[4]) + "()"];
    }
}
return o;

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon