author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年08月24日 17:12:41 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年08月24日 17:12:41 +0200 |
commit | cc057826b4036cbb50e7f54ec2edd3290dc22944 (patch) | |
tree | 0d66809069b9f585331db593368f7f1adf3ae957 /help.lua | |
parent | 10181f3b0098551f530e69cfc7d89221dac9332c (diff) | |
download | gsl-shell-cc057826b4036cbb50e7f54ec2edd3290dc22944.tar.gz |
-rw-r--r-- | help.lua | 9 |
@@ -1,5 +1,10 @@ -local help_files = {'graphics', 'matrix', 'iter'} +local help_files = {'graphics', 'matrix', 'iter', 'integ', 'ode'} + +local function help_init( ... ) + local REG = debug.getregistry() + REG['GSL.help_hook'] = {} +end local function open_module(modname) local fullname = string.format('help/%s.lua', modname) @@ -17,6 +22,8 @@ local function search_help(func) end end +help_init() + -- declare a global function function help(func) local txt = search_help(func) or "No help found for the given function" |