Guard directives against invalid input

-explain invalid inputs in argument error message