Validate the parameter.
The name of the parameter (e.g. "-host").
The value of the parameter that we need to validate