I wonder if it would make sense to be able to declare an option as 'mandatory' via a .mandatory() function. I can of course check availability of an option explicitly, but when there are many options, it gets tedious. A missing mandatory options should just throw an exceptions. That way the program can terminate immediately rather than wasting time with other things until it discovers that a critical option is missing.
P.
I wonder if it would make sense to be able to declare an option as 'mandatory' via a .mandatory() function. I can of course check availability of an option explicitly, but when there are many options, it gets tedious. A missing mandatory options should just throw an exceptions. That way the program can terminate immediately rather than wasting time with other things until it discovers that a critical option is missing.
P.