Hi @מממם ,
If you set the option IsRequired = true
, the default error "Option '--language' is required" is always triggered first.
If you want to display your own error message, you can instead set it to required, but manually determine whether it is empty in your code and output the error message.
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.