comparison src/help.cc @ 5667:ec3ffbf9982b

[project @ 2006-03-15 02:51:39 by jwe]
author jwe
date Wed, 15 Mar 2006 02:51:40 +0000
parents 2b20d1707f29
children 62734ddaf17b
comparison
equal deleted inserted replaced
5666:4a48a1df26b7 5667:ec3ffbf9982b
927 describing the @code{help} command, and @kbd{help -i help} starts the\n\ 927 describing the @code{help} command, and @kbd{help -i help} starts the\n\
928 GNU Info browser at this node in the on-line version of the manual.\n\ 928 GNU Info browser at this node in the on-line version of the manual.\n\
929 \n\ 929 \n\
930 Once the GNU Info browser is running, help for using it is available\n\ 930 Once the GNU Info browser is running, help for using it is available\n\
931 using the command @kbd{C-h}.\n\ 931 using the command @kbd{C-h}.\n\
932 @seealso{which, lookfor}\n\
932 @end deffn") 933 @end deffn")
933 { 934 {
934 octave_value_list retval; 935 octave_value_list retval;
935 936
936 int argc = args.length () + 1; 937 int argc = args.length () + 1;
1114 DEFCMD (which, args, nargout, 1115 DEFCMD (which, args, nargout,
1115 "-*- texinfo -*-\n\ 1116 "-*- texinfo -*-\n\
1116 @deffn {Command} which name @dots{}\n\ 1117 @deffn {Command} which name @dots{}\n\
1117 Display the type of each @var{name}. If @var{name} is defined from a\n\ 1118 Display the type of each @var{name}. If @var{name} is defined from a\n\
1118 function file, the full name of the file is also displayed.\n\ 1119 function file, the full name of the file is also displayed.\n\
1120 @seealso{help, lookfor}\n\
1119 @end deffn") 1121 @end deffn")
1120 { 1122 {
1121 octave_value_list retval; 1123 octave_value_list retval;
1122 1124
1123 string_vector argv = args.make_argv ("which"); 1125 string_vector argv = args.make_argv ("which");
1535 sentence of the help of the functions is dependent on the format of the\n\ 1537 sentence of the help of the functions is dependent on the format of the\n\
1536 functions help. All of the functions in octave itself will correctly\n\ 1538 functions help. All of the functions in octave itself will correctly\n\
1537 find the first sentence, but the same can not be guaranteed for other\n\ 1539 find the first sentence, but the same can not be guaranteed for other\n\
1538 functions. Therefore the use of the '-all' argument might be necessary\n\ 1540 functions. Therefore the use of the '-all' argument might be necessary\n\
1539 to find related functions that are not part of octave.\n\ 1541 to find related functions that are not part of octave.\n\
1540 @seealso{which, help}\n\ 1542 @seealso{help, which}\n\
1541 @end deffn") 1543 @end deffn")
1542 { 1544 {
1543 octave_value_list retval; 1545 octave_value_list retval;
1544 int nargin = args.length (); 1546 int nargin = args.length ();
1545 bool first_sentence_only = true; 1547 bool first_sentence_only = true;