I have a script which can get tens of arguments/flags using Getopt::Long.
Certain flags are not allowed to be mixed, such as: --linux --unix are not allowed to be supplied together. I know I can check using an if statement. Is there is a cleaner and nicer way to do that?
if blocks can get ugly if I don't want to allow many combinations of flags.