Functions | |
function | help (name) if(nargin |
elseif (nargin==1 &&ischar(name))[text | |
switch (lower(format)) case"plain text"status=0 | |
case not documented | error ("help: `%s' is not documented\n", name) |
endif | which (name) |
printf ("\n%s\n%s", text, __additional_help_message__()) | |
else | error ("help: invalid input\n") |
if (!isempty(d)) p | |
endswitch unwind_protect_cleanup | path (p) |
Variables | |
format = get_help_text (name) | |
case | texinfo [text, status] = __makeinfo__ (text, "plain text") |
case | html [text, status] = strip_html_tags (text) |
case not | found [text, status] = do_contents (name) |
if(status!=0) error("help raw Texinfo source of help text follows | n |
endif endfunction | function [text, status] |
status = 1 | |
d = find_dir_in_path (name) | |
unwind_protect | path (d) |
else error | ( | "help: invalid input\n" | ) |
if | ( | ! | isemptyd | ) |
endswitch unwind_protect_cleanup path | ( | p | ) |
printf | ( | "\n%s\n%s" | , | |
text | , | |||
__additional_help_message__() | ||||
) |
switch | ( | lower(format) | ) | [pure virtual] |
d = find_dir_in_path (name) |
status = 1 |