author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月17日 23:48:45 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月17日 23:48:45 +0100 |
commit | 054f7b34fe1e2a376ed35a45c78ed0d5d4393b66 (patch) | |
tree | 3ea000e3b86329961aed6a875836309f4dc4aca1 /help.lua | |
parent | b98c33f92a95b37070ecedc5c370da94bda555c3 (diff) | |
download | gsl-shell-054f7b34fe1e2a376ed35a45c78ed0d5d4393b66.tar.gz |
-rw-r--r-- | help.lua | 6 |
@@ -14,11 +14,15 @@ end local function search_help(func) for k, modname in ipairs(help_files) do + local mt = getmetatable(func) local module = open_module(modname) if module[func] then local help_text = module[func] return help_text - end + elseif mt and module[mt] then + local help_text = module[mt] + return help_text + end end end |