doSwitchOrElse

Hi all,

I’ve just tried to raise an Exception from else() in doSwitchOrElse(), if given parameter is not matching any option.

However, it looks like that exception is always thrown, independently of given parameter value.

So it looks like it’s an obligatory code to execute a subchain there.

Am I right? For me it would be more useful to raise an exception “on the fly” to notice about a wrong given parameter by command line.

Thanks

Post some sample code. You may be running into the dreadful curse of confusing build time with run time execution. :slight_smile:

I will.

In Runtime execution.

I will.

In Runtime execution.