Page 1 of 1

%hasoptions and/or %equaloptions

Posted: Wed May 06, 2026 7:52 am
by paues
A called program's arguments are stored in %args. But can I check what @equaloption's and @hasoption's it was called with without know them in advance? There doesn't seem to be variables %hasoptions and/or %equaloptions

Re: %hasoptions and/or %equaloptions

Posted: Wed May 06, 2026 9:03 am
by EViews Gareth
I don't understand what you're asking here.

Re: %hasoptions and/or %equaloptions

Posted: Wed May 06, 2026 9:08 am
by EViews Gareth
But, you can return the list of options provided with the @getoptions function:

Code: Select all

%options = @getoptions
You can retrieve the ith option with @option:

Code: Select all

%firstoption = @option(1)

Re: %hasoptions and/or %equaloptions

Posted: Wed May 06, 2026 9:30 am
by paues
That’s great! Exactly what I was looking for :-)