Mercurial > hg > octave-terminal
changeset 10783:fc9e07fdf9c2
display.m: print usage message if nargin != 1
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 12 Jul 2010 09:53:28 -0400 |
parents | d1f920d1ce0c |
children | ca2df6737d6b |
files | scripts/ChangeLog scripts/general/display.m |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-07-12 John W. Eaton <jwe@octave.org> + + * general/display.m: Print usage message if nargin != 1. + Bug #30421. + 2010-07-09 Thorsten Meyer <thorsten.meyier@gmx.de> * general/interp2.m: improve input argument handling and
--- a/scripts/general/display.m +++ b/scripts/general/display.m @@ -33,5 +33,9 @@ ## @end deftypefn function idx = display (a) - error ("display: not defined for class \"%s\"", class(a)); + if (nargin == 1) + error ("display: not defined for class \"%s\"", class(a)); + else + print_usage (); + endif endfunction