octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50752] inputParser Parameter key are parsed a


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #50752] inputParser Parameter key are parsed as Optional
Date: Mon, 10 Apr 2017 10:10:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #7, bug #50752 (project octave):

This error message is just wrong.  It looks like a Matlab bug so I don't think
we will replicate it:


p = inputParser ();
p.addOptional ('op1', 'val1');
p.addParameter ('line', 'circle');
p.parse ('line');
p.Results ()

The argument 'line' is a string scalar or character vector and does not match
any parameter names. It failed validation for the argument 'op1'.


Can you run one last test, please:


p = inputParser ();
p.addOptional ('op1', 'val1');
p.addParameter ('line', 'circle', @ischar);
p.parse ('line', 'line', 89);
p.Results ()


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50752>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]