handle invalid input for the -t and -m switches