Method code for $command_lib.format_commands_short()

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

o = [];
for def in (cmds.keys()) {
    o += [type + " commands on " + def.name() + ":"];
    cs = [];
    for cdef in (cmds[def]) {
        for c in (cdef[2])
            cs += ["\"" + c[3] + "\""];
    }
    o += cs.sort().lcolumnize(len - 2, " ").prefix("  ");
}
return o;

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

Tlon