[Top][All Lists]

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

[Octave-bug-tracker] [bug #62639] inputParser fails to add Optional argu

From: anonymous
Subject: [Octave-bug-tracker] [bug #62639] inputParser fails to add Optional argument with empty cell default value
Date: Tue, 21 Jun 2022 08:04:00 -0400 (EDT)

Follow-up Comment #2, bug #62639 (project octave):

OP here.

An easy solution will be to use instead of cellarray of structures, the

In _inputParser.m:276_

Optional = struct("name", {}, "def", {}, "val", {});

Filling (line 328):

this.Optional{end+1}.name = name;
this.Optional{end}.def = def;
this.Optional{end}.val = val;

Accessing (line 401):
opt = this.Optional(++idx);
Essentually replacing {} by ().


Reply to this item at:


Message sent via Savannah

reply via email to

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