[Turn off line numbering]1: arg cmds, type, clen; 2: var def, name, c, cdef, line, o, cs, dname; 3: 4: o = []; 5: for def in (cmds.keys()) { 6: o += [type + " commands on " + def.name() + ":"]; 7: for cdef in (cmds[def]) { 8: for c in (cdef[2]) 9: o += [" " + toliteral(c[3]).left(clen) + "." + tostr(c[4]) + "()"]; 10: } 11: } 12: return o;
// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit