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: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #50752] inputParser Parameter key are parsed as Optional
Date: Sat, 8 Apr 2017 04:33:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

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

I get this:


>> version

ans = 9.1.0.441655 (R2016b)

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

ans = 

  struct with fields:

    line: 'circle'
     op1: 'val1'
     op2: 'val2'


    _______________________________________________________

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]