changeset 11630:1b01b40886eb release-3-0-x

[3-0-0-branch @ 2008-02-02 18:13:44 by jwe]
author jwe
date Sat, 02 Feb 2008 18:13:44 +0000
parents bc19cf26ff0b
children 895a1c788281
files src/ChangeLog src/variables.cc
diffstat 2 files changed, 23 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jan 30 21:00:04 2008 +0000
+++ b/src/ChangeLog	Sat Feb 02 18:13:44 2008 +0000
@@ -1,3 +1,7 @@
+2008-01-30  Thomas Weber  <thomas.weber.mail@gmail.com>
+
+	* variables.cc (Fclear): Doc fix.
+
 2008-01-30  Thomas Weber  <thomas.weber.mail@gmail.com>
 
 	* pager.cc (Fmore): Doc fix.
--- a/src/variables.cc	Wed Jan 30 21:00:04 2008 +0000
+++ b/src/variables.cc	Sat Feb 02 18:13:44 2008 +0000
@@ -2392,7 +2392,7 @@
 
 DEFCMD (clear, args, ,
   "-*- texinfo -*-\n\
-@deffn {Command} clear [-x] pattern @dots{}\n\
+@deffn {Command} clear [options] pattern @dots{}\n\
 Delete the names matching the given patterns from the symbol table.  The\n\
 pattern may contain the following special characters:\n\
 \n\
@@ -2430,7 +2430,24 @@
 @code{foo} as a function.  Executing @kbd{clear foo} a second time will\n\
 clear the function definition.\n\
 \n\
-With -x, clear the variables that don't match the patterns.\n\
+The following options are available in both long and short form\n\
+@table @code\n\
+@item -all, -a\n\
+Clears all local and global user-defined variables and all functions\n\
+from the symbol table.\n\
+\n\
+@item -exclusive, -x\n\
+Clears the variables that don't match the following pattern.\n\
+\n\
+@item -functions, -f\n\
+Clears the function names and the built-in symbols names.\n\
+@item -global, -g\n\
+Clears the global symbol names.\n\
+@item -variables, -v\n\
+Clears the local variable names.\n\
+@end table\n\
+With the execption of @code{exclusive}, all long options can be used \n\
+without the dash as well.\n\
 @end deffn")
 {
   octave_value_list retval;