Mercurial > octave
changeset 21668:58f5a6347851
inpputParser.m: fix display method.
* inputParser.m: display is broken because it tries to access a non-existent
PartialMatching parameter (which does not exist because is not implemented).
Create that parameter but error if someone tries to set it to true (because
otherwise we are likely to forget to re-add it to display).
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Tue, 03 May 2016 03:31:55 +0100 |
parents | 84092ccb45e2 |
children | 927d7bc4bdfa |
files | scripts/general/inputParser.m |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/inputParser.m Mon May 02 13:48:09 2016 +0300 +++ b/scripts/general/inputParser.m Tue May 03 03:31:55 2016 +0100 @@ -249,7 +249,7 @@ CaseSensitive = false; FunctionName = ""; KeepUnmatched = false; - # PartialMatching = true; # FIXME: unimplemented + PartialMatching = false; # FIXME: unimplemented (and default should be true) StructExpand = true; endproperties @@ -286,6 +286,12 @@ endproperties methods + function set.PartialMatching (this, val) + if (val) + error ("inputParser: PartialMatching is not yet implemented"); + endif + endfunction + function addRequired (this, name, val = inputParser.def_val) if (nargin < 2 || nargin > 3) print_usage ();