comparison scripts/help/help.m @ 8631:52956d669506

Display sensible error message when the help text of an undocumented function is requested
author Soren Hauberg <hauberg@gmail.com>
date Sun, 25 Jan 2009 19:55:42 +0100
parents 540165304f00
children 5dd06f19e9be
comparison
equal deleted inserted replaced
8630:540165304f00 8631:52956d669506
58 status = 0; 58 status = 0;
59 case "texinfo" 59 case "texinfo"
60 [text, status] = makeinfo (text, "plain text"); 60 [text, status] = makeinfo (text, "plain text");
61 case "html" 61 case "html"
62 [text, status] = strip_html_tags (text); 62 [text, status] = strip_html_tags (text);
63 case "not documented"
64 error ("help: `%s' is not documented\n", name);
63 case "not found" 65 case "not found"
64 [text, status] = do_contents (name); 66 [text, status] = do_contents (name);
65 if (status != 0) 67 if (status != 0)
66 error ("help: `%s' not found\n", name); 68 error ("help: `%s' not found\n", name);
67 endif 69 endif