Method code for $command_lib.unparse_shortcut_full()

[Turn on line numbering]
arg s;
var part, out, short, method, args;

[short, [method, args]] = s;
out = "";
for part in (args) {
    if (type(part) == 'string)
        out += (out ? ", \"" : "\"") + part + "\"";
    else
        out += (out ? ", " : "") + "%" + part;
}
out = "." + method + "(" + out + ")";
short = .recard_shortcut(short);
return ("\"" + short + "\"").left(10) + " => " + out;

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

Tlon