Check the argument of a given parameter which set by user and stop function if the value set by user is not among the possible values of the argument