Mercurial > hg > octave-nkf
diff src/variables.cc @ 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 | 97db94ae2cf0 |
children | 7a4efac7e476 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -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;