5ca3ceff5f01369f5e4a49a2a3bbb8af00295c81
[scilab.git] / scilab / modules / helptools / macros / help.sci
1 function help(key)
2         
3         //for compatibility with toolboxes making use of old cat files
4         if (fileinfo('SCI/modules/helptools/help') <> []) then
5                 
6                 change_old_man()
7                 INDEX=make_help_index()
8                 
9                 if argn(2)==0 then
10                         browsehelp(INDEX,"index");
11                         return
12                 end
13                 
14                 key=stripblanks(key)
15                 
16                 if or(part(key,1)==['(',')','[',']','{','}','%','''','""',':','*','/', ...
17                         '\','.','<','>','&','^','|','~','+','-']) then
18                         key="symbols";
19                 end
20                 
21                 path=gethelpfile(key)
22                 
23                 if path<>[] then
24                         browsehelp(path,key)
25                 else
26                         apropos(key)
27                 end
28         else
29                 warning('Help not installed');
30         end
31         
32 endfunction
33
34
35
36
37
38
39
40
41