
Vladimir Prus
Seems like some part is left out of our question "if the user does not provide a value", then what?
do I need to basically handle that in the catch block of the exception handling, or is there some other way of doing it upfront?
- Volodya
Sorry, I seem to be asleep at the wheel today. What I am saying is if the user does not provide a value for the option, and the value is required, is my only option to handle this in the catch block or is there a way to do this some other way? E.g. I define an option --env which much have a value. If the user just runs a.out --env, and not a.out --env=PROD, then it seems that the exception is thrown. Is there some way of checking it without doing the exception handling? Thanks, -Andy